In android, what is the meaning of the following code in mainactivity class?
Answer / Punit Kumar Rana
The provided code `setContentView(R.layout.activity_main);` initializes the layout for the MainActivity in Android. The `setContentView()` method sets the view that should be displayed inside the activity's main UI container. In this case, it sets the content of the activity to the layout defined in the activity_main.xml file, which is usually located under the res/layout directory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is src/ directory?
What is android version 7.0 called?
State the code names of android along with the year when they were brought in?
How many apps are available for Android?
What is onlistitemclick()?
State the life cycle methods of android activities?
What is the google android sdk?
Explain application of shared preference?
What is a widget on android?
Which is the best ui for android?
Explain me what is the difference between service and intentservice? How is each used?
How do you find memory leaks in the mobile app on android platform?