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

Native Development

Reply
Developer
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Some help with battery info

What is the return value for "battery_info_get_time_to_full()"?

I don't believe that the return value is minutes to fully charge because the value is too big.

 

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_re...

Developer
Developer
Posts: 132
Registered: ‎08-24-2011
My Device: Z10 LE + Playbook
My Carrier: MTS Ukraine

Re: Some help with battery info

Maybe in seconds. 

Thank you!
----------------------------
My Apps: Alchemy Game | Image Resizer | Jam! | Traffic Signs: USA | Radio Record
My Blog: http://bb10pro.com
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Some help with battery info

What's 'too big'?

Developer
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Re: Some help with battery info

I think the return value in milli seconds

Developer
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Re: Some help with battery info

Anyone know about this, please confirm for me.

There are 2 questions about battery info:

 

Is the return value of those function is in milli seconds?

And is the return value is always a fixed number?

 

Thanks so much.

Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: Some help with battery info

Hey have you got the answer ? I am also getting a fixed value while calling battery_info_get_time_to_empty()

Rujuta Trivedi
Developer
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Re: Some help with battery info

No answer until now :smileysad:

 

Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: Some help with battery info

Are you testing on dev alpha or z10?

Rujuta Trivedi
Developer
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

Re: Some help with battery info

I already tested on Dev Alpha and Z10.

Developer
Posts: 528
Registered: ‎10-06-2009
My Device: 9800,BB Dev Alpha,z10 limited edition
My Carrier: Vodafone

Re: Some help with battery info

Both giving same result?  have you calculated time some other way or waiting for this to resolve?

Rujuta Trivedi