• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detecting battery level?

 
Luca Luchi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote this little PersonalJava applet to detect battery level, but it always returns same number, 214783647 , which looks like "infinite" ( oo ).
How could I get it working?

It would also be fine if somebody could turn this applet into an application, as it looks like Applets are not actually allowed to access Power.Monitor class on my motorola A1000 phone.

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jump Jack"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic