Are there any problems with the application that receives partial blocking of the trace with an interval of 10 seconds. My precedent for this is the ability to constantly monitor user movement using the device’s accelerometer. Basically, I have a Service that is triggered by an alarm every 10 seconds.
This service receives a trace lock, receives some readings from the accelerometer to determine the current state of movement, and then releases the tracking lock. The total service life of the service is about 4 seconds.
I understand that this leads to the fact that the device does not wake up for about 24 seconds every minute. Although I’m not perfect, I would hope that this is still better than holding a permanent lock on tracking for the entire life of my application.
On the other hand, is it possible that the act of acquiring and releasing a tracking lock in such a short amount of time is just as bad for the battery?
Any input is appreciated.
source share