Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 32
Registered: ‎02-12-2013
My Device: Playbook
My Carrier: Rogers

Batter state charging problem

Hi all,

 

We have an app that is trying to detect whether a phone is charging or not.

According to:

http://developer.blackberry.com/native/reference/cascades/bb__device__batterychargingstate.html?f=ch...

 

There is a state Charging. However, when the battery reaches 100%, even though the cable is still connected and is charging, the state switches to Full.

So when the battery is 100%, there is no way we can detect whether the cable is connected or not (in both cases the battery state remains Full). 

I'd like to have an additional state FullAndCharging in this particular situation when cable is connected and charging, but also the battery is at 100%.

 

Can it be done? Thanks in advance.