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