Why would you do the setcontentview() in oncreate() of activity class?



Why would you do the setcontentview() in oncreate() of activity class?..

Answer / Saurav Kumar Roy

setContentView() is called in the onCreate() method to inflate and associate a layout file with the current activity. It sets the content view for an Android activity, which means it determines what the user sees on their screen when they open the activity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

Kindly name few of the last code given to android different versions?

1 Answers  


If the Activity is showing an animation that indicates some kind of progress, what issue might you encounter and how could you address it?

1 Answers  


What is armv7?

1 Answers  


What are the exceptions in android?

1 Answers  


what is dalvik virtual machine in android?

1 Answers   UGC Corporation,


Activity results handled by the onactivityresult() method are differentiated from one another using which code?

1 Answers  


How does manifest file plays an integral role in app development?

1 Answers  


how to write a custom adapter in android?

1 Answers  


Please explain the difference between nine-patch image vs regular bitmap image?

1 Answers  


What are the notifications available in android?

1 Answers  


Is google the owner of android?

1 Answers  


Will these phones have world phone capabilities, with the ability to make calls, receive data in other countries? Or will they be able to use Google Voice to make calls?

1 Answers  


Categories