Android
AND-401 · Question #47
To add a new Activity to your application, you need to perform the following steps:
The correct answer is C. Create a Java class that extends Activity, add an Activity tag in AndroidManifest.xml, and create a. See the full explanation below for the reasoning.
Question
To add a new Activity to your application, you need to perform the following steps:
Options
- ACreate a Java class that extends View, set a layout, and add an Activity tag in
- BCreate layout resource only.
- CCreate a Java class that extends Activity, add an Activity tag in AndroidManifest.xml, and create a
- DAdd an Activity tag to AndroidManifest.xml, and add ACTIVITY permission.
How the community answered
(19 responses)- B11% (2)
- C84% (16)
- D5% (1)
Community Discussion
No community discussion yet for this question.