Gomezgani Phiri Gomezgani Phiri - 6 months ago 19
Android Question

Behavior of calling finish() on activity that has focus

What would happen if the finish() method is called in the code of an Activity that currently has the focus because another Activity intended it?

Answer

When finish() is called, that activity is destroyed. The previous activity that is still running would then be shown.

https://developer.android.com/reference/android/app/Activity.html#finish()