I have a network call in my activitiy's onResume
that I only want the user to call after coming back to the app from another app, a long period of inactivity, or from the Android app stack.
I don't want it to be called when it resumes from calling finish()
on a second Activity on top of the first Activity.
What would be the best way to do this?