| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |