Answer the question
In order to leave comments, you need to log in
Is it possible to create an unkillable timer on Android?
Is it possible to create an unkillable timer in Android? What are the approaches?
You can do it through the service, but it can be stopped by the system. You can save the state when you close it and restore it when the application starts along with the service, but this is more like dancing with a tambourine. Or are there no options?
Answer the question
In order to leave comments, you need to log in
Write an event to the system calendar? This is what LinguaLeo does on Windows Phone, such a timer will never fail.
If you need a trigger timer, then you need an AlarmManager.
And if the counting timer, then you
can’t do without recording the last value and then restoring it with the calculation of the current value.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question