BroadcastReceiver issues in Android 3.1+

自闭症网瘾萝莉.ら 提交于 2019-12-01 11:30:43

since android 3, all components in an app are prevented from running (receiving broadcasts) until the app is explicitly started by the user.

to test if this is your problem, add a dummy activity to your app and start it. now your app should be able to receive intents from then on (even after a reboot).

here's the AOSP issue describing the problem,

http://code.google.com/p/android/issues/detail?id=18225

note that it's closed as "works as intended". this is technically a security fix. apps could exploit certain well-known broadcast intents like TIMER_TICK to start themselves without the user ever running the app or knowing that the app was running.

Check this out: Boot Complete problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!