04-19-2012 01:21 AM
Hi, i developed an app that tracks the battery info on the device and it was working fine in the previous playbook OS version. After i updated my playbook to OS 22.214.171.124, the app doesnt work and I found that it was because I cant receive any battery information from the system.
I am catching the info from Intent.ACTION_BATTERY_CHANGED in my BroadcastReceiver but it doesn't work anymore. Is this action being removed after the OS update? or there is some where else i can receive the information?
03-04-2013 03:06 PM
Im running on a Playbook with OS 126.96.36.1998.
When the broadcast receiver for Intent.ACTION_BATTERY_CHANGED is triggered, I get
EXTRA_LEVEL(="level") = 0
EXTRA_SCALE(=scale) = 100
regardless of the actual battery level. I have verified that these values are actually the values received, not the default ones in getIntExtra().
Based on some previous questions about issues when trying to determine the battery level, it looks like determining battery level is an ongoing issue. Does anyone have any know workarounds, or is there a fix on the way? The code I am using works properly on a pure Android device.