android - How can we determine in onPause() if an application/activity is going into the background (onStop) or will be destroyed (onDestroy) -


i had telephonic interview session , interviewer asked peculiar question. wanted know if can, means, know if activity/application stopped (onstop) or destroyed (onstop ondestroy) before happens , when flow in onpause method.

i mean execution inside onpause , there can tell if ondestroy(aplication closed) or onstop (backgrounded).

could not find answer anywhere.

i believe you're looking isfinishing().

if true, activity in process of finishing. checked onpause()

android isfinishing documentation


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -