I wrote a service with a broadcastreceiver listening on BATTERY_CHANGE. The thing is when the screen is on it works perfectly, but when the phone goes into standby, the service is receiving just the old battery levels.
So for example the screen turns off at 50% battery state, then I'm receiving 50% all the time and when I wake up the phone some time later I get the correct battery state i.e. 40%
Does someone else run into that issue or is there an fix for that ???
PS: I tested it on LG2X and HTC Magic.
Ok it is not possible to receive updates from the battery meter while the screen is off. I do solved it with inexact repeated updates and an intentservice