J
J
jusalex2014-11-09 15:11:37
Android
jusalex, 2014-11-09 15:11:37

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

3 answer(s)
V
Valery Sotnikov, 2014-11-09
@web_user

Write an event to the system calendar? This is what LinguaLeo does on Windows Phone, such a timer will never fail.

O
one pavel, 2014-11-11
@onepavel

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.

X
xibir, 2017-01-24
@xibir

I won’t write a php code, but such an expression
\p{L}.*?\p{L}
finds 2 unicode letters and everything in between

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question