How can I check the battery level using J2ME?
Can this be done?
If yes? Is there some library I should import, where from?
P.S:
- I'm using a Nokia with S60 2nd Edition.
- I'm developing using the Sun Wireless Toolkit.
How can I check the battery level using J2ME?
Can this be done?
If yes? Is there some library I should import, where from?
P.S:
- I'm using a Nokia with S60 2nd Edition.
- I'm developing using the Sun Wireless Toolkit.
As far as I know it's not possible possible on S60 2nd ed, but only on 3rd edition FP2 (with com.nokia.mid.batterylevel system property)
Pit
Assuming I would use a 3rd Edition FP2 device,
How can I integrate com.nokia.mid.batterylevel to the Sun Wireless Toolkit?
The following line:
returns the battery level (in percentage). Anyway, on Sun WTK it'll return null.Code:System.getProperty("com.nokia.mid.batterylevel");
For System properties reference see this page:
http://wiki.forum.nokia.com/index.ph...tem_properties
Pit