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?
source
share