Skip to content Skip to sidebar Skip to footer

Broadcast Receiver Onreceive() Never Called

I get this issue in ICS, but not in previous versions: From App1, I am sending broadcast and trying to receive it in App 2 activity. But the onReceive is never called in App 2's ac

Solution 1:

In ICS you won't receive broadcasts until your app is started manually at least once.in Android 3.1+, apps are in a stopped state if they have never been run, or have been force stopped. The system excludes these apps from broadcast intents. They can be included by using the Intent.FLAG_INCLUDE_STOPPED_PACKAGES flag like this..

i.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);

Post a Comment for "Broadcast Receiver Onreceive() Never Called"