BroadcastReceiver trying to return result during a non-ordered broadcast - PACKAGE_ADDED in Android

前端 未结 2 1641
忘了有多久
忘了有多久 2021-01-03 19:14

I am getting this exception in my below given code. i don\'t have any idea what is wrong with this code. Please help me out to get rid of this exception.

05-         


        
2条回答
  •  执念已碎
    2021-01-03 19:53

    Delete setResultCode(). That is only for use with an ordered broadcast, as is described in the documentation for setResultCode().

提交回复
热议问题