Identifying NEXT activity in onPause()

view full story

http://stackoverflow.com – Is there any way to identify what the next activity is going to be when onPause() is invoked. I need to know because when the next activity is not one from my own application then I need to perform certain clean up that I don't want to perform when moving to an activity within my own application. I know I can set some sort of flag when I do the startActivity() in my application but I wondered if there is a built-in way to get it. (HowTos)