I have an Android app that runs a background service that reads sensor data every second. I found out that if there are other applications, I do not collect my data every second (I have no seconds). I assume that the OS does not give me enough processor time.
Can I change the priority of a service among running tasks in order to get enough CPU and execute it?
(The service is called from the action using StartService(mIntentService).)
source
share