Issue
If Java provides Garbage Collection, then what is the need of onDestroy() in Activity Lifecycle?
Solution
onDestroy: The final call you receive before your activity is destroyed. This can happen either because the activity is finishing (someone called finish() on it), or because the system is temporarily destroying this instance of the activity to save space.
Here is an example......
public void onDestroy() {
super.onDestroy();
}
Answered By - sam786
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.