Skip to Content

The onDestroy() method is the last call before an activity is destroyed. It is called by the user or the system and is used to finish up the activity. The onDestroy() method closes open readers, writers, and connections. The user can override this method to make sure the app closes properly. In addition to closing …

Read More about What Does Finish Do in Android?