In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?
In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?
The appropriate method for performing static setup operations such as creating views and binding data to lists in the Activity lifecycle is onCreate(). This is the first method called when an Activity is created and provides the opportunity to initialize the activity by setting up UI components and loading essential data. After onCreate(), the Activity transitions into the onStart() and onResume() phases, where it becomes visible and interactive to the user.
C. onCreate()