I am newbie to Android development. I completely understand Android Lifecycle
and how each Lifecycle method
's purpose is by reading this post.
But what code statements (operations) should normally be implemented in each of these Lifecycle methods (onCreate
, onStart
, onResume
and so on).
For example, I found almost all of UI interactions
operations are implemented in onCreate
method. I mean linking UI Views by findViewById
and define click event listeners on these views by setOnClickListener
.
In this phenomenon, what kind of operations are normally done in other Lifecycle methods
?