Android – how to minimize battery consumption in heavy services
•
Android
When some "hot situations" happen, I want to create a service to do something, and "enthusiasm" I want to mean:
>GPS / unit coordinates are located in a known area > known Bluetooth device detected > known Wi Fi network detected > weather information has changed > considerable changes in device acceleration detected: for example, from walking to driving
It can be seen that when I have to detect the acceleration of the device, these tasks are "heavy" and often run - for example, 15 minutes, but sometimes even more
My question is: will this service run out of battery?
If so, what are your suggestions to reduce the battery consumption of the above tasks?
resolvent:
This may be of interest to you:
Coding for battery life
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码