You Are Here:

Community: Developer Discussion Boards

#1 Old detecting that then battery is charging + J2ME - 2009-06-04, 10:47

Join Date: Jun 2009
Posts: 1
mbeygaza
Offline
Registered User
Hi i need to develop an application similar to this

http://appfrica.net/blog/archives/1815

how is is possible in J2ME , I'm a newbee which api should i use especially to detect the level of battery and that the battery is charging?

thx
Reply With Quote

#2 Old Re: detecting that then battery is charging + J2ME - 2009-06-04, 11:00

Join Date: Apr 2007
Posts: 1,757
Tiger79's Avatar
Tiger79
Offline
Forum Nokia Champion
afaik not possible...
unless you only want to support pretty new devices (S60 3rd Edition from FP2, so NO FP1 like the N95 which would be too old) its not possible.. but if you only want to support those then there are some nice system properties within the wiki, one of which would be :
System.getProperty("com.nokia.mid.batterylevel");
I dont think you will be able to detect when the mobile is charging though, as in your MIDlet wont get a interrupt or something, so you should monitor its state all the time, and if the battery level is rising then you could conlude its getting charged :D

The most viable option (if you'd like to support all S60's for example) would be to use C++/Symbian combo...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscribing to battery charging event er_benji Mobile Java General 1 2009-03-16 16:28
J2ME or C++ for VoIP on Mobile sandeepkumar03 VoIP 4 2009-02-02 11:28
J2ME or C++ for VoIP on Mobile Phone sandeepkumar03 Mobile Java Media (Graphics & Sounds) 2 2008-11-13 21:14
Detecting GPS in j2me? sunil_bhambani123 Mobile Java Networking & Messaging & Security 5 2008-10-08 16:35
Can J2ME be used for sending MMS Message ? seno_ap Mobile Java General 1 2006-11-24 15:36

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia