If you’ve been around in Android for quite a while...
# feed
a
If you’ve been around in Android for quite a while, you probably know that managing an app’s lifecycle is quite a headache! Have you ever had these moments yourself?
Copy code
Should I put this code in onStart() or onResume()?
Should I put this code in onPause() or onStop()?
*Runs the app. Wait, why isn't it called?!
*Moves code to another lifecycle callback
Hi, all Just published a new article about the Lifecycle library found in Android Jetpack. Would be glad to hear your feedback. http://imakeanapp.com/android-jetpack-lifecycle/ Source code can be found here: https://github.com/arthlimchiu/android-lifecycle-library-tutorial