Exam AND-401 All QuestionsBrowse all questions from this exam
Question 85

To add a new Activity to your application, you need to perform the following steps:

    Correct Answer: C

    To add a new Activity to your application, you need to create a Java class that extends Activity, add an Activity tag in AndroidManifest.xml to register it, and create a layout for the activity. This ensures that the new activity has the necessary code, is recognized by the Android system, and has a UI defined through a layout resource.

Discussion
MmadiOption: D

D. Add an Activity tag to AndroidManifest.xml, and add ACTIVITY permission.