I have an issue where I want to differentiate between an activity being stopped because the user wants to navigate back (staying active within my app), or putting my app into the background (switching to the home screen or another app).
Is there any way to tell during onPause
or onStop
which of the two is the case?