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
New Contributor
tonyblaze
Posts: 5
Registered: ‎04-18-2013
My Device: PlayBook 16GB, White Z10
My Carrier: Airtel
Accepted Solution

"Boot Time" on BlackBerry 10

Is a way to read "Boot Time" as seen on "Settings->About->Hardware" in BlackBerry 10 using BlackBerry 10 Native or Cascades?

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: "Boot Time" on BlackBerry 10

I'm not sure if there's a callable API for this but you probably don't need one:

$ cat /var/boottime.txt
Apr 06 19:57:52 EDT 2013

Just read that file and you should be able to use it in your app.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
New Contributor
tonyblaze
Posts: 5
Registered: ‎04-18-2013
My Device: PlayBook 16GB, White Z10
My Carrier: Airtel

Re: "Boot Time" on BlackBerry 10

Thanks!!!

Please use plain text.