×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    6

    Battery charge level system property (com.nokia.mid.batterylevel)

    Hi everyone.

    I bought a brand new Nokia Asha 501 Dual SIM and because I wanted to have a fine control of the amount of battery charge available at the moment, I developed a simple app just to read the value from the system, and show it in a Label. I am getting the property value calling the following API: LocalDevice.getProperty("com.nokia.mid.batterylevel")

    However, the values I get are not progressive. The phone stays at 100% for about 2 days and then drastically drops to around 75%, and after another 2 days (aproximately) it drastically drops to around 50%, and then 25% and finally 4% when the low battery indicator and message is shown. I believe that the battery life is normal (about 1 week, aproximately), but I can't control the time to know when I should charge the phone. When the low battery sign appears, I have maybe 3 or 4 hours left of battery charge, and if I could know prior to that moment that the battery is around 15%, for example, I could charge it, because I knew that I won't have enough battery from there on.

    Is this the right property to read the battery charge level? Am I using the correct way to do this? Is it recommended?


    Thank you for reading this, and maybe help me with this issue.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    The devices usually supply the same granularity of battery levels as what they actually display. While I do not know the Nokia Asha 501, based on the photos it has 5 lines in the indicator, so reporting 5 different levels seems to be normal.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    6

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    Well, for the purpose of my needs, it would be enough if the low battery warning were triggered at around 10% or 12%, because with only 4% (the time the warning is actually triggered) of battery charge, I have just a tinny amount of battery left (about 2 or 3 hours) before it is dead.

    Is there a way to set the trigger of that warning to anything else than 4%?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    I do not think there is a precise way for that. You can rather rely on the 25% level, and use some heuristics to estimate how much time is left, perhaps setting an alarm to the following evening, and things like that.

  5. #5
    Registered User
    Join Date
    Aug 2013
    Posts
    6

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    Fair enough. I was hoping there would be a better solution, but unfortunately I have to stick with that one.

    Thanks for the help wizard_hu_ !

  6. #6
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    There isn't any better solution in the wiki either - all I can see is Checking_battery_level_in_Java_ME (same approach) in Category:System_Information_on_Java_ME

  7. #7
    Registered User
    Join Date
    Aug 2013
    Posts
    6

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    Hello everyone!

    I have to update this thread, because after the SW Update (v. 11.1.1) from Nov 23rd, now the battery level decreases progressively, as I always expected it to be.

  8. #8
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: Battery charge level system property (com.nokia.mid.batterylevel)

    Thanks for letting us know!

Similar Threads

  1. Battery Charge level & Info: Model Support?
    By justteam in forum Symbian
    Replies: 1
    Last Post: 2007-01-11, 15:26
  2. Battery Charge level & Info: Model Support?
    By justteam in forum Symbian
    Replies: 1
    Last Post: 2007-01-11, 14:57
  3. Battery Charge level & Info: Model Support?
    By justteam in forum Mobile Java General
    Replies: 1
    Last Post: 2007-01-11, 14:57
  4. To check Battery charge Level
    By abernues in forum Symbian
    Replies: 5
    Last Post: 2006-02-27, 18:23
  5. 3100 and wrong battery charge level
    By vastar in forum General Development Questions
    Replies: 0
    Last Post: 2004-06-10, 06:29

Posting Permissions

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