Android Application Development (AND-401) — 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?

Answer options

Correct answer: C

Explanation

The correct answer is C. The onCreate() method is where you should perform all normal static setups such as creating views and binding data to lists, as it is called when the activity is first created. The other methods, like onResume() and onStart(), are used for managing the activity's visibility and state rather than initial setup.