android

android - show pictures in webView that are'nt in filesystem

Hello, how can I show pictures in WebView without saving images into file system? I have tried to implement my custom ContentProvider, but method openFile returns ParcelFileDescriptor that points into filesystem (or socket). My pictures are in filesystem, but in encrypted form. I have tried also URL.setURLStreamHandlerFactory, but in a...

What are C based Services and Java based Services?

What are C based services and Java based services in Android? What is similarity and dissimilarity between them ? Are C based services available in Android? ...

Android - how to make sure my Service is restarted?

I have an Android application with a background running Service. When the Service crashes or gets killed by Android I can see that Android tries to restart it again. However the Service never actually restarts, I can see Android scheduling the restart but it new actually happens. My code is as follows: @Override public void onCreat...

Calling service method to wigdet

Hi I have a android widget, that show info from one service application that I have. I update the info from the service and this is running good. But I have a problem. My service works in second plane when the application is close, if I create the widget when the app is second plane the service is running and how my service is running wh...

Android app "resets phone" on client phone after certain amount of use

I am nearing completion of a contract to develop an Android app, but am being held up by a devastating bug that only seems to occur on the client phone. It appears that after a certain amount of usage, every time the client opens the app -- before they can even get past the login screen -- it "resets the phone", which I take to mean dum...

Android Services Ploblem?

I've a application where a service is running in background and when a Serial port is connected this service will tell the activity that serial port is connected. Now ,If service is inactive or it is killed by Android for space allocation and some data comes from UART , who will serve this data? Please answer urgently. Thank you. ...

Cannot install .apk on phone

Hi I've just knocked together my first app, have released and signed it and transferred to my phone, but cannot get it to install on my phone - after going through the screen saying 'Do you want to install this application' and clicking install, I just get a message saying 'Application not installed' with no further explanation. I had c...

I want to access inner class variable from my Outer class method in Android Activity..

Hello Guys, Is someone intelligent there who can answer this question? I m doing some task with following code, I want to access inner class variable from outer class method. class Outer extends Activity { private Handler mHandler = new Handler(); StopTheThread() { mHandler.removeCallbacks(mUpdateT...

Activity name in AndroidManifest.xml

Is it required to start activity name with dot ('.') in manifest file.? for example activity ContactManager starts with '.' <activity android:name=".ContactManager" android:label="@string/app_name"> where as the activity ContactAdder is without dot <activity android:name="ContactAdder" android:label="@string/addContactTitle"> in...

Toggling check boxes in MultiChoice AlertDialog in android

Hi, I have created the MultiChoice AlertDialog The AlertDialog has five list items with checkboxes. Here when I check First checkbox, w.r.t this the if the other checkboxes in the list are checked they shud be unchecked automatically and vice versa. I am checking the isChecked status in the onClick method of ...

How to display android sms inbox

Notification notifyDetails = new Notification(R.drawable.msg,"message received",System.currentTimeMillis()); PendingIntent myIntent = PendingIntent.getActivity(context, 0, new Intent(Intent.ACTION_VIEW), 0); I am using broadcast receiver to notify for incoming message. i am able to display my own notification in not...

clear cache mwmory when will i start my application in android

Hi Friends, I want to program for clear cache memory when will i start my application in android,Anybody knows coding please give me. Thanks All ...

Creating Android Modular Applications on Eclipse

I am currently porting a framework for building applications on J2ME to Android. This framework consists of several projects that compile to libraries (jars). Each individual JAR can contain graphical data (resources, J4ME screens, etc.). Every project generally has a well defined entry point (module). When someone wants to build an appl...

Pop-Up display in Android using alertdialog.builder

Hi all! I am new to Android Programming. I need to display a Pop-Up message in my application which I have no clue about. I got to hear from somewhere that it can be done using alertdialog.builder, but I have no idea how to do that? I just want to display a simple Text Message. Can anybody please help me out regarding this with an exa...

getting data from .net ebservice to android

Hi All, I am very new to android and java, previously i worked on .net. we have a requirement in android. so the first thing is login page. client will give us a .net webservice we have to send userid and password to that webservice webmethod called as validateUserInformation and get validated.and as response they send us a bool value ...

EditText hint doesn't show

My EditText configured as follows won't show the hint: <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" android:hint="The hint..." android:scrollHorizontally="true" android:singleLine="true" /> It works if I set android:gravity="left" or if I remove ...

Error during sms deletion in Android API.

Hi, I have problem with deletion sms with messageId=0. I can't delete such a message. There is no problem with deletion other messages but first message taken from inbox has always message Id=0 and I can't delete it. I use code below for deletion. Uri SMS_CONTENT_URI = Uri.parse("content://sms"); Uri deleteUri = Uri.withAppendedPath(SM...

position of homescreen icons

Hi, Is it possible to organize the homescreen icons programatically so that i can arrange each icon's position? thanks ...

Max number of Activities!

Is there any design guideline on the number of Activities an application could have? If there is a limit, what would be the ideal number of Activities that can be bundled in an Android application. ...

Sample DevicePolicyManager codes from Android 2.2 work?

Im looking for some sample codes to start with thanks, although i can read the api ,this will be a big help for others to help with a simple code. ...