Answer the question
In order to leave comments, you need to log in
Where to change fragment when restoring Activity?
Such a case: there is an Activity where different fragments are placed. Let's say it has one fragment. The user minimizes the Activity. At this time, the background process changes some state, and when the user opens the application again (accordingly, the Activity is restored), then we should show him a completely different fragment (since the one that was when minimized is no longer relevant).
Question: how to do it correctly and in what place (onCreate / onResume, etc.)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question