A Timer That Will Kill Android App After Idle For Certain Time?
I am working on a service that will check whether the app has idle (at the background) for certain time, and kill the app if it is exceed that given time. Also , if the user has br
Solution 1:
You could use handler.postDelayed(runnable, time) and when You bring back Your activity You could call handler.removeCallbacks(runnable); to cancel postDelayed
Post a Comment for "A Timer That Will Kill Android App After Idle For Certain Time?"