Reputation: 132982
I'm trying to understand An Activity full life-cycle.
So I have searched on Google and found lots of tutorials regarding activity life-cycle, but in all tutorials I have not found these methods in life-cycle diagram:
1. OnContentChanged()
2. OnPostCreate()
3. OnPostResume()
4. OnWindowfocusChanged()
5. OnuserLeaveHint()
6. OnUserInteraction()
7. OnDetachedFromWindow()
I would like to known why these method's are not included in activity life-cycle diagram on android docs.
One more question:
When an activity is created for the fist time then system calls the OnContentChanged()
method as the first method and last call by system is the OnDetachedFromWindow()
method when an activity is killed, but android docs says entire lifetime of an Activity happens between OnCreate()
and OnDestroy()
?
Upvotes: 11
Views: 2753
Reputation: 46856
Check out the Documentation for Activity All of these are in there, and many of them contain more detail than what I've listed here.
Upvotes: 3