I have two situations
- A main activity from which I start another activities and return back to the main activity from this activity.
- My whole application is in the background and I'm returning to the main activity.
How could I identify these two situations separately? I think onRestart
and onResume
methods can't help me because both these methods will be called on both situation.