C
C
central2017-08-18 15:34:58
Android
central, 2017-08-18 15:34:58

How to make the timer work in android sleep mode?

There is an application in which you need to take into account the time of the operation and display it on the form, the problem is that when the device goes into sleep mode, the time is no longer taken into account, I did a partialwakelock but this does not help, just counting the difference from the beginning and end of the operation is not an option, since the operation can be paused, what can be done to correctly record the time of the operation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mr_serg77, 2017-08-18
@mr_serg77

Dig in the direction of services, or wake lock (you need a permission in the manifest).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question