filter - Android Broadcastreceiver unregister needed when registered in manifest? -


So this is mainly the question, when I register a Broadcastreceiver dynamically, Then it is not necessary to register on onDestroy but when the BroadcastSaver is registered inside the manifest, do we need to unregister it?

You should be careful while adding broadcast receiver because unnecessary broadcast receiver battery Remove from power.

If you add a broadcast receiver to the Android Manifest file , it is implied that you want to handle a particular purpose in the broadcast receiver and do not ignore

< P> You can use PackageManager to enable / disable BroadcastReceiver as declared in the manifest Broadcast Recipient only enabled Will be removed only.

For more information

One way to enable and disable the broadcast receiver is to be added to the manifest file.

View this post


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -