Hi there
I have an app which need to 'log out' the user after 2 hours whether the app is visible or the device is sleeping etc so not necessarily in the foreground. I am currently using a service to start in 2 hours which forces the login screen to the forefront.. The service start gets updated each time an activity is accessed or left.
My questions are
1 - How can I combat the device destroying this service in low memory situations? I have read the service module info but just wanted advice on my scenario..
2 - Can I force the login screen to be the forefront of the app but not to be in the foreground when the service runs.. I don't want the user to get the login screen if they are browsing the internet or on the phone for example but just to show when the user reactivates the app.
Thank you for your advice in advance..
Derek.
I have an app which need to 'log out' the user after 2 hours whether the app is visible or the device is sleeping etc so not necessarily in the foreground. I am currently using a service to start in 2 hours which forces the login screen to the forefront.. The service start gets updated each time an activity is accessed or left.
My questions are
1 - How can I combat the device destroying this service in low memory situations? I have read the service module info but just wanted advice on my scenario..
2 - Can I force the login screen to be the forefront of the app but not to be in the foreground when the service runs.. I don't want the user to get the login screen if they are browsing the internet or on the phone for example but just to show when the user reactivates the app.
Thank you for your advice in advance..
Derek.