What happens when finish()
method is called in onStop()
method?
Does it causes anr : means it calls
onPause()->onStop()->finish()->onPause()....
or it finishes the activity : means it calls directly
onDestroy()
Actually, I want to finish my activity when it is completely invisible.
EDIT:
See this scenario, I launch an activity B whose layout height and width is smaller than activity A, so activity A is partially visible and when I press the home button activity A becomes completely invisible. At this point I want to close activity A, so that it do not call onRestart().
Thanks in advance.