I am looking into how to keep my Android app running in the foreground.
It will be a privately distributed app, so I can do anything possible to make sure it runs consta
You may try startLockTask(); For More info, visit here
startLockTask();