Tell us why would you do the setcontentview() in oncreate() of activity class?



Tell us why would you do the setcontentview() in oncreate() of activity class?..

Answer / Sudhanshu Singh

The `setContentView()` method is called in the `onCreate()` method of an Activity to inflate and set the layout for the Activity. This layout defines the visual structure of the user interface (UI) of the Activity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

What is toast notification?

1 Answers  


Is it ok to disable android system webview?

1 Answers  


Is android 6.0 still supported?

1 Answers  


What are the different types of intents in android?

1 Answers  


Explain what is application context?

1 Answers  


Which is the latest operating system for android?

1 Answers  


Which method is implemented by all subclasses of an activity?

1 Answers  


What items are important in every android project?

1 Answers  


Does selenium support google android operating system?

1 Answers  


Which method to opena http connection to an uri?

1 Answers  


What does fragment mean?

1 Answers  


How many ways data stored in Android?

1 Answers   UGC Corporation,


Categories