M
M
makeroh2021-04-02 18:45:58
Android
makeroh, 2021-04-02 18:45:58

How is the timer on Activity?

I have several Activities
AND one main Activity
When nothing happens on the rest, then after some time, the program should start the main Activity
How can I implement this?
Tell me please. Maybe something to read?
I'm just new to this topic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-04-03
@zagayevskiy

Firstly, in Android, something happens only on one activity that is currently on the screen. Nothing should happen to the rest.
Secondly, launching some kind of activity without an explicit user action is bad manners.
Thirdly, in most cases, in a modern application, several activities are not needed. One fragment is enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question