Skip to Content
avatar image
Former Member

Get Battery Percent Pocket

Hi,

Is there a way to get the battery percent of the Pocket with java code? Our customer wants to work with the pocket on Full-Screen and would like to have this information.

Is possible?

Thanks.

Regards,

Bruno

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 05, 2008 at 12:01 PM

    Hi Bruno,

    As far as I know it depends on your vendor, you have to check vendor's SDK as Sivakumar suggested.

    Try Batti software to Pocket PC and see if it helps you as an alternative solution:

    Batti can run as a topmost indicator, even if full screen applications are running.

    Best regards,

    Rogério

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sivakumar,

      I will do tests about youd said. Thanks again!!

      Hi Tamba,

      We install Batti Software and it worked very nice. But, the the feature:

      Always On: Top Batti can run as a topmost indicator, even if full screen applications are running.

      There is a issue:

      6 Defect New Medium -


      -

      Batti uses about 30% of CPU when Always on top setting set up.

      But our customer liked about this solution and he will do tests with this application.

      Thanks.

      Regards,

      Bruno

  • avatar image
    Former Member
    Sep 04, 2008 at 08:13 AM

    Hi Bruno,

    Yes its definitely possible. You can use the Intel Mobile Platform SDK and Runtime to achieve this. Kindly refer to [SDK home page|http://ossmpsdk.intel.com/] and you can download the SDK from [here|http://ossmpsdk.intel.com/file.php?fid=26]. The SDK has lots of Java sample codes and some are related to Power and Battery as well. The program will only return you the actual value and you need to decide on the UI technology on how and where to display it. Also this [article|http://softwarecommunity.intel.com/articles/eng/1070.htm] is a good reference that is specific to your case, but the coding is in C++.

    Note: I have seen this working on Intel Processor based Pocket PC (Windows Mobile Devices) and hope even your customer also has the Intel processor based devices. I am really not sure if this works on other processors as well.

    Hope this helps.

    Best Regards

    Sivakumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Bruno,

      I really do not trust device emulators since i have come up with such errors even while they work perfectly on the actual device. Your case could also be the same.

      Best Regards

      Sivakumar

  • avatar image
    Former Member
    Sep 05, 2008 at 01:09 PM

    I didn´t get to get the battery level yet using CrEmE, but Batti application helped to solve our customer requisition.

    Add comment
    10|10000 characters needed characters exceeded