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()
Comments
Post a Comment