adspace


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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the latest version of android?

1088


Which is the latest version of android os?

1048


What all devices have you worked on?

1059


What did you like better, ice cream sandwich or kitkat?

978