WARN/ActivityManager(5038): Permission denied: checkComponentPermission

烈酒焚心 提交于 2019-11-28 13:26:55
Vikalp Patel

You need to add permission under your manifest file add these

<receiver android:name=".YourBroadCastReceiverName" android:exported="true"></receiver>

The solution is to add android:exported="true" to the activity that will be invoked by the intent. Adding it to the receiver, as suggested by another answer, did not work for me, but adding it to the activity did.

Herschel said: " the problem was in the manifest file of the application where the BroadcastReceiver was defined: android:exported should be defined as true"

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