Junior — Middle
In which callback method should you call finish() to end the Activity so that the user does not notice?
sobes.tech AI
Answer from AI
It is best to call Activity's finish() method in the onPause() method. At this point, the Activity is no longer in the foreground, and the user will not notice its closure, as the screen is already switching to another Activity or application. Calling finish() in onPause() will make the transition smooth and unnoticeable for the user.