Is that possible to set a timer which would work on background and triggered on onStop(), i.e. when application goes off the user’s screen? I need to “kill” the application so it will start from scratch after some time being invisible to the user.
Is that possible to set a timer which would work on background and triggered
Share
Look up
Handler.post(). But note that you might want to provide a reset mechanism of some kind, in case the app is revitalized afteronStop()but before the kill code works. Otherwise, the kill code will be invoked on a running app.