1. Download our Official Android App: Forums for Android!

Apps How to make sure my app isn't draining batteries

Discussion in 'Android Development' started by chrisdev44, Apr 1, 2016.

  1. chrisdev44

    chrisdev44 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 1, 2016

    Apr 1, 2016
    2
    0
    5
    Male
    I didn't realize that the Android Battery tool allows people to not only see which apps are hogging battery, but you can even uninstall those apps directly from the tool.

    With this being such a big issue, how can I test my app's drain or figure out which bits of code / scenarios cause the most drain? Any tips?
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #17
    Points:
    1,488
    Posts:
    6,729
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    6,729
    9,485
    1,488
    Male
    Software developer
    South West of England
    You could try running the Android battery tool with your app running on the device. What does it say? If it's not a huge battery hog, then no problem.
     
  3. chrisdev44

    chrisdev44 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 1, 2016

    Apr 1, 2016
    2
    0
    5
    Male
    That's just one moment of one instance on one controlled device, not really the granularity that I'm looking for. Knowing which points of my app are causing issues can help me figure out where to focus my efforts.

    My worry is that it'll be exponentially worse for certain users, certain devices, etc that I can't always replicate
     

Share This Page

Loading...