H
H
h1_0ne2020-06-01 22:45:06
Kotlin
h1_0ne, 2020-06-01 22:45:06

How to create a function that will work after N times?

Good afternoon. It is necessary to execute the function to update the token every N minutes. I thought at first to make an infinite loop that would execute it with certain parameters, but when the application is minimized (or sleeps), the function is not executed. How can I solve this problem? Or googling about something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmtm, 2020-06-02
@Dmtm

why update the token when the application is minimized (or even more so asleep)? if it was not possible to update the token in time - log in again, what's the problem?
instead of "infinite loop" look about background work in android

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question