Questions tagged [android-broadcastreceiver]

BroadcastReceiver is an Android component that responds to system-wide broadcast announcements.

BroadcastReceiver is an Android component that responds to system-wide broadcast announcements.

Many broadcasts originate from the system – for example, a broadcast announcing that the screen has turned off, the battery is low, or a picture was captured.

Applications can also initiate broadcasts – for example, to let other applications know that some data has been downloaded to the device and is available for them to use.

Although broadcast receivers don't display a user interface, they may create a status bar notification to alert the user when a broadcast event occurs. More commonly, though, a broadcast receiver is just a "gateway" to other components and is intended to do a very minimal amount of work. For instance, it might initiate a service to perform some work based on the event.

For more information visit the Android BroadcastReceiver reference or the documentation for the receiver element used in the Android manifest file.

859 questions
-3
votes
2 answers

Download file from internet and register broadcast receiver only with network available

I'm developing an app that needs to download a json file from a web server in the background and stored it in the external memory, every time you load the activity it will populate the data by reading the file first (and if there is no file it will…
-4
votes
1 answer

SMS Broadcast receiver doesn't work

I tried popping a Toast when the user I getting an SMS message. for some reason, the Toast doesn't show I have every permission I need in the manifest file the receiver in manifest the code: public class IncomingSMS extends BroadcastReceiver { …
-5
votes
1 answer

Intent Action for Download Completion not visible in AndroidManifest.xml

I am trying to register a broadcastreceiver which listens for "android.intent.action.DOWNLOAD_COMPLETE". But it is not visible in the AndroidManifest.xml. Please help
-6
votes
2 answers

BroadcastReceiver setting own context

is is possible to set own context after creating broadcastreceiver like this:? public class MyFragment extends Fragment(){ Button myButton; @Override onCreate { myButton = (Button) findview... myButton.setOnClickListner(myListener); } . . …
Nimdokai
  • 787
  • 1
  • 6
  • 18
1 2 3
57
58