WARN/ActivityManager(5038): Permission denied: checkComponentPermission

后端 未结 3 522
無奈伤痛
無奈伤痛 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: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.

提交回复
热议问题