How to minimize battery leakage in harsh conditions

I would like to create a service to do something when there is some kind of “hot situation”, and by “hot situation” I mean the following:

  • GPS / cell coordinates are in a known area
  • A known Bluetooth device is found.
  • known Wi-Fi network detected
  • weather information has changed.
  • a significant change in the acceleration of the detected device: for example. from a walk to a car by car.

As you can see, these tasks are "heavy" and will be performed often - say, 15 minutes, but sometimes even more - when I need to detect the acceleration of the device.

I have a question: will this service drain the battery very much?

If so, what recommendations should you minimize battery drain from the tasks described above?

+3
source share
2 answers

This may interest you:

Battery Encoding

+12
source

GPS is the top battery drain tank - when used all the time, the battery life is likely to be reduced to half. The wireless connection is also quite a large drain. If your application works over a cellular network, then if your phone connects to 3G, it will probably drain as fast as a wireless connection (maybe even more) ...

. , , , , " ". , - , /.

, , "Battery usage", Android.

+2

Source: https://habr.com/ru/post/1727352/


All Articles