Skip to content Skip to sidebar Skip to footer

Android: Getting Java.lang.illegalargumentexception On Unregisterreceiver()

I am having an application where user can register and unregister receiver from Settings to enable and disable service of app. I have taken a toggle button to let user control the

Solution 1:

Just define this BroadcastReceiver b=new SmsReactor(); outside of Button's click like, OnCreate() and try again let me know what happen,


Post a Comment for "Android: Getting Java.lang.illegalargumentexception On Unregisterreceiver()"