Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I still receive broadcast receiver intent after I force stopped my app on android?

A simple question. Does it happens that I still receive the registered broadcast receivers after I force stopped the application?

like image 280
Surjya Narayana Padhi Avatar asked Feb 11 '12 12:02

Surjya Narayana Padhi


People also ask

Does broadcast receiver work in background?

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.

What does broadcast receiver do in Android?

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.

What is the limit of broadcast receiver in Android?

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.


1 Answers

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.

like image 125
CommonsWare Avatar answered Oct 09 '22 03:10

CommonsWare