Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Battery Level

 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Is there a way to read the battery level in j2me and to know the amount of battery remaing and consumed at certain period?Thaks
 
Peter Miklosko
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far I'm aware this should be included in Java ME SDK 3.0, also you may want to check individual mobile manufacturers which mobile device do include this option. I think Sony Ericsson J8.4 phones do but not sure, never had need for such data
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks my device is nokia n80 and I am using sdk 3.0 but how to write the code
 
Anuj Prashar
Ranch Hand
Posts: 99
Android Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this ..

System.getProperty("com.nokia.mid.batterylevel");

and check pdf file on this link
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic