It sure is a battle to keep apps alive.
I put PartialLock code in the Activity_Resume of Main. I release the PartialLock in Main.Pause - but only if UserClosed is true.
With the PartialLock set, the phone keeps the app running even over night with no interaction. However, every now and again the OS (android, I assume) removes this PartialLock feature from the app and that allows it to kill the app whenever it feels like it. The only way round this is to reinstall the app.
I know when the PartialLock is being maintained because under setting/battery I see my app marked with "May keep system from sleeping". This is what I want. However after a few weeks or so, that message is gone, the app gets killed and the only way to recover is to re-install from the apk file.
Does anyone have any solutions to this problem?
I put PartialLock code in the Activity_Resume of Main. I release the PartialLock in Main.Pause - but only if UserClosed is true.
With the PartialLock set, the phone keeps the app running even over night with no interaction. However, every now and again the OS (android, I assume) removes this PartialLock feature from the app and that allows it to kill the app whenever it feels like it. The only way round this is to reinstall the app.
I know when the PartialLock is being maintained because under setting/battery I see my app marked with "May keep system from sleeping". This is what I want. However after a few weeks or so, that message is gone, the app gets killed and the only way to recover is to re-install from the apk file.
Does anyone have any solutions to this problem?