You Are Here:

Community: Developer Discussion Boards

#1 Old Retrieve buttery status - 2008-06-28, 12:28

Join Date: Jun 2008
Posts: 11
liormin
Offline
Registered User
Hey people,

I'm wondering rather I can retrieve the buttery status of the phone
I tried to use "javax.power.monitor.PowerMonitor"
but whlie compiling i got the following error:

Quote:
C:\Javas\BP\Power.java:52: package javax.power does not exist
import javax.power.monitor;
^
2 errors
com.sun.kvem.ktools.ExecutionException
Build failed
Any ideas whats wrong?

Thanks, Lior
Last edited by liormin : 2008-06-28 at 19:29.
Reply With Quote

#2 Old Re: Retrieve buttery status - 2008-06-29, 01:21

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
There is no access to battery information in Java ME (althouh some phones might have proprietary extensions for that). Compiling your MIDlet with PowerMonitor package doe snot solve this.

If the phone allows native applications to be installed (like S60 phones) you could create a native application which gets the battery data and passes that information through local socket connection to a MIDlet (so called MIDPJNI workaround). On S60 phones you could also easily create a Python app for that.

Hartti
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
status pane in E61 screen (320x240 ) s603rd francobellu General Symbian C++ 2 2008-07-10 13:48
status pane in E61 screen (320x240 ) s603rd francobellu Symbian User Interface 1 2006-06-24 00:16
How can i solve this error? symbian-newbie General Symbian C++ 6 2006-05-23 06:33
Getting started with Carbide.vs -- running the app ET3D Symbian Tools & SDKs 6 2005-11-23 18:45
How to retrieve bettery status on series 80 device? toughworker General Symbian C++ 0 2005-02-25 00:35

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