In the emulator, if I set power capacity to a value different from the current value, my BroadcastReceiver's onReceive is called with the new value. (I've registered with ACTION_BATTERY_CHANGED.)
In a real device, whose battery is discharging from 100 to 20 percent over a period of a few days, will my onReceive method be called:
- exactly 80 times,
- more than 80 times or
- fewer than 80 times?
Re: possible duplicate question - I'm also concerned about the handler not being called often enough. I've also not made the mistake of registering a broadcast receiver from within another broadcast receiver.