What does finish () do in Android?

What does finish () do in Android?
Answer
When calling finish() on an activity, the method onDestroy() is executed. This method can do things like:
Dismiss any dialogs the activity was managing.
Close any cursors the activity was managing
.
 

Tìm kiếm

Back
Top