When you add an activity using New → Activity in Android Studio, it automatically:
- Deletes MainActivity
- Creates a fragment
- Creates the class, its layout and the manifest entry
- Publishes the app
Answer
C) Creates the class, its layout and the manifest entry
The wizard creates all three pieces.
Computer Science MCQ · More Lab: Multiple Activities and Navigation MCQs · Practise