S
S
Slavik122020-07-03 22:11:48
Android
Slavik12, 2020-07-03 22:11:48

How to make the application do something after closing after some time?

There are common applications. The user made some actions in the application, but I need these actions to be canceled exactly one day after the change. How can this be done, with what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2020-07-03
@Slavik12

Do you limit free functionality?
enter "valid until" in the settings
and the settings getter can be rewritten like this
//
if(free version && valid_until < current_date_time){
return default_value.
}
return setting value;

D
Denis Zagaevsky, 2020-07-03
@zagayevskiy

WorkManager , of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question