Where to Go From Here?
Download the final project by using the Download Materials button at the top or bottom of this tutorial.
Now that you know the basics of the Android lifecycle, you’re ready to explore further. Build your apps and don’t be afraid to inspect how your activities and fragments behave in different scenarios. Besides ViewModel
, other components can also help you to manage the lifecycle, such as Lifecycle-Aware Components. You can also look into more complex cases, like the Multi-Window Lifecycle.
You’re now ready to dive deep into whatever state of the Android lifecycle you want. If you liked what you learned in this tutorial, check out the complete Android Apprentice book. It takes you all the way from building your first app to submitting your app for sale. A couple chapters cover what you learned here, but the difference is that you’ll build the apps from the ground up.
Hopefully, you enjoyed this tutorial. If you have any questions or comments, please join the discussion below! :]