Mobile: Battery Status / Level

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Mobile: Battery Status / Level

Post by simon.schvartzman » Wed Mar 15, 2017 2:39 pm

Hi, I have been digging the Dictionary, Documentation and the Forum and wasn't able to find the answer.
In order to make sure I'm not missing something I would like to confirm if there is any way to read the device Battery Status/Level with LC 8.1.3
If there is, needless to say I would really appreciate an example (or link to it)

As always, many thanks in advance.
Simon
________________________________________
To ";" or not to ";" that is the question

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Mobile: Battery Status / Level

Post by Klaus » Wed Mar 15, 2017 2:50 pm

Hi Simon,

well, this is possible with a widget, but there isn't one yet!

Read up this blog entry if you like to do it yourself:
https://livecode.com/infinite-livecode-java-progress/

Best

Klaus

simon.schvartzman
Posts: 665
Joined: Tue Jul 29, 2014 12:52 am

Re: Mobile: Battery Status / Level

Post by simon.schvartzman » Wed Mar 15, 2017 3:17 pm

Thanks Klaus...I guess the blog approach it "too much" for me. Will wait until there is a simplest way to do it.

I guess it is a useful functionality LC should offer in the near future

Cheers!
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply