A simple question. Does it happens that I still receive the registered broadcast receivers after I force stopped the application?
If you want a background receiver, you need to register it inside the AndroidManifest (with intent filter), add an IntentService and start it when you receive a broadcast in the receiver.
A broadcast receiver (receiver) is an Android component which allows you to register for system or application events. All registered receivers for an event are notified by the Android runtime once this event happens.
As a general rule, broadcast receivers are allowed to run for up to 10 seconds before they system will consider them non-responsive and ANR the app.
Does it happens that I still receive the registered broadcast receivers after I force stopped the application?
On Android 3.1+, no. Once the user has force-stopped your application, you will receive no more broadcast Intents
, of any kind, until the user manually starts one of your activities.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With