How to get BroadcastReceiver for Action :android.intent.action.MAIN and android.intent.category.HOME in My Android Application

和自甴很熟 提交于 2019-12-05 17:36:18

spelling category right in the manifest should help :)

I do not think you can get that functionality, see https://groups.google.com/forum/#!topic/android-developers/fNTysSA8mWQ

Android internally calls startActivity for starting the ACTION_MAIN registered component to start the launcher. Since you are registered with the receiver, It wont be get called unless it calls with sendBroadast. Hope it helps

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