Exam AND-401 All QuestionsBrowse all questions from this exam
Question 66

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?

    Correct Answer: C

    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.

Discussion
MmadiOption: C

C. onCreate()