I have a broadcast receiver that starts a service when device booting ends. Although I do not know how to disable / deactivate it.
Here's my address:
Android: Android: Android: Android. .RECEIVE_BOOT_COMPLETED "/> & lt; receiver android: name =". BootReceiver "android: label =" @ string / app_name "> & lt; intent-filter & gt; & lt; action android: name =" android.intent.action.BOOT_COMPLETED "& gt; & lt; action android: Name = "android.intent.action.QUICKBOOT_POWERON" & gt; & lt; / intro-filter & gt; & lt; / receiver & gt; BootReceiver.java:
In The question is, what do I do here?
if (! RBoot.isChecked ()) {?????????}}
What you can do is use SharedPreference and set when your device completes the boot And checks the flag to disable and disable your BroadCastReceiver then flag .
Comments
Post a Comment