After published a game on market place, I decided to strengthen my knowledge of Android again.
First, start from Activity Life Cycle. Though the developer site of official Android explained the life cycle of activity with a lot text, it is still a little confusing or not clear enough. Thus I test it through by set break points during the whole life cycle. This is the result.
New Start:
onCreate(),
onStart(),
onResume().
Rotate Device:
onSaveInstanceState(),
First, start from Activity Life Cycle. Though the developer site of official Android explained the life cycle of activity with a lot text, it is still a little confusing or not clear enough. Thus I test it through by set break points during the whole life cycle. This is the result.
New Start:
onCreate(),
onStart(),
onResume().
Rotate Device:
onSaveInstanceState(),
onPause(),
onStop(),
onDestroy(),
onCreate(),
onStart(),
onRestoreInstanceState(),
onResume().
Other activity overlayed(e.g.Home button pressed,Calls in or other activity opened):
onSaveInstanceState(),
onPause(),
onStop().
Back from other activity(Not destroyed yet):
onRestart(),
onStart(),
onResume().
Back button pressed/finish() called:
onPause(),
onStop(),
onDestroy().
Screen Off:
onSaveInstanceSave(),
onPause().
Screen back on:
onResume().
onStop(),
onDestroy(),
onCreate(),
onStart(),
onRestoreInstanceState(),
onResume().
Other activity overlayed(e.g.Home button pressed,Calls in or other activity opened):
onSaveInstanceState(),
onPause(),
onStop().
Back from other activity(Not destroyed yet):
onRestart(),
onStart(),
onResume().
Back button pressed/finish() called:
onPause(),
onStop(),
onDestroy().
Screen Off:
onSaveInstanceSave(),
onPause().
Screen back on:
onResume().
ReplyDeleteHey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
AWS Training in Chennai |Best Amazon Web Services Training in Chennai
AWS Training in Rajaji Nagar | Amazon Web Services Training in Rajaji Nagar
Best AWS Training Institute in BTM Layout Bangalore ,AWS Coursesin BTM
Appreciating the persistence you put into your blog and detailed information you provide
ReplyDeleteangularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
ReplyDeletepython training in tambaram | python training in annanagar | python training in jayanagar
Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
ReplyDeleterpa training in velachery| rpa training in tambaram |rpa training in sholinganallur | rpa training in annanagar| rpa training in kalyannagar
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeleteJava training in Chennai | Java training in Bangalore
Java online training | Java training in Pune
This is very good content you share on this blog. it's very informative and provide me future related information.
ReplyDeletedevops online training
aws online training
data science with python online training
data science online training
rpa online training
superb....
ReplyDeleteinplant training in chennai for it
namibia web hosting
norway web hosting
rwanda web hosting
spain hosting
turkey web hosting
venezuela hosting
vietnam shared web hosting