WARN/ActivityManager(5038): Permission denied: checkComponentPermission

后端 未结 3 523
無奈伤痛
無奈伤痛 2020-12-11 16:55

From one application I am (broadcast) sending an intent to a broadcastreceiver of another one. I am getting the error:

WARN/ActivityManager(5038): Permissio         


        
相关标签:
3条回答
  • 2020-12-11 17:14

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

    0 讨论(0)
  • 2020-12-11 17:23

    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.

    0 讨论(0)
  • 2020-12-11 17:31

    You need to add permission under your manifest file add these

    <receiver android:name=".YourBroadCastReceiverName" android:exported="true"></receiver>
    
    0 讨论(0)
提交回复
热议问题