I try to create a broadcast receiver in inner-class of AsyncTask class here my code public class sendData extends Activity {
I cant access my SQlite database from my broadcast receiver. Is it even possible? I keep getting a NullPointerException.In the onReceive of the BroadcastReceiver I call
I\'m working on my first Android application and I\'m having problems using AlarmManager. My application schedules an alarm to check a few URLs for data. Well, sometimes when the alarm runs, I get an
Basically I want to add my application to the application chooser list for files with the type .php, .java, .js, .html etc. so that users can browse for a file using any file browser and use my app to
My app uses the TelephonyManager.ACTION_PHONE_STATE_CHANGED for some actions. But I want a different action while the phone rang when the user was present (screen was on) and different action when the
I have tab layout in portrait mode. Now I have to respond for onConfigChanges happened in one of my tabs. Following research on google I made this code:
I already create receiver to test network availability so I can receive when the android has or no network, but how can we listen to internet availability?
Is it possible to update a currently running Broadcastreceiver from an Activity? For example: Say the user enters a string...and then hits submit...I want the broadcast receiver to be updated with t
As stated by the AlarmManager docs: http://developer.android.com/reference/android/app/AlarmManager.html#RTC_WAKEUP
I\'m trying to measure how long each Bluetooth discovery process takes place. I assign currentTimeMillis to startTime and stopTime. When I put the BroadcastReceiver class as inner class, I can read bo