Author Topic: [identyfied] Wild battery usage  (Read 960 times)

Offline Gammalerik

  • More than Newbie
  • *
  • Posts: 60
    • View Profile
[identyfied] Wild battery usage
« on: April 26, 2014, 11:08:58 »
Recently I noticed from my battery stats page that Locus used over 80% of my battery. Worst of all, Locus was not even started and the phone was freshly rebooted with a full battery.

It turned out that having the proximity sensors active was the culprit. (The function to turn off the display by waving the hand in front of the phone). This service is always active on my HTC One regardless if Locus has been started or not.
« Last Edit: April 26, 2014, 12:31:42 by Gammalerik »
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11872
  • Thanked: 438 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: [identyfied] Wild battery usage
« Reply #1 on: April 27, 2014, 09:43:43 »
very good observation!!! Thank you.

Seems that sensor was enabled in locus too early and not everytime was also destroyed. I added some kind of protection and improved a code a little bit, so now it will be enabled as long as main map screen will be in memory. I believe it will works as expected now. Thanks once more!
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 

Offline Christian

  • Premium
  • Master of Locus
  • ****
  • Posts: 830
  • Thanked: 10 times
    • View Profile
Re: [identyfied] Wild battery usage
« Reply #2 on: April 27, 2014, 11:13:10 »
+1