I would like create a service to do something when some “hot situation” occurs, and by “hot situation” I mean the following:
- the GPS/cell coordinates are in a known zone
- a known Bluetooth device is detected
- a known Wi-Fi network is detected
- weather info has changed
- considerable change in acceleration of device detected: eg. from walking to travel by car.
As one can see, these tasks are “heavy” and will be run frequently – say, 15 minutes, but sometimes even more – when I have to detect the acceleration of the device.
The question I have is this: will this service drain the battery heavily?
If so, what recommendations do you have to minimize battery drain from the tasks described above?
This might be of interest to you:
Coding for battery life