How to send BATTERY_LOW broadcast? should I use sendbroadcast() or sendstickybroadcast? Why?
Use sendBroadCast(), because for sticky you may need to take permission.
use sendStickyBroadCast(), because logically this broadcast has to be available for future users.
We can use either, no harm.
use sendOrderedBroadcast(), because it has to be ordered properly.
We have to use sendStickyBroadCast() because, logically if battery went down, then this information has to be available for applications which may run after some time in future.
Back To Top