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

If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?

    Correct Answer: D

    The ActivityNotFoundException is thrown when a call to startActivity(Intent) fails because there is no activity found to handle the given Intent. This typically occurs if the activity you are trying to launch is not declared in the AndroidManifest.xml file. Adding the activity to the AndroidManifest.xml ensures that the Android system is aware of the activity and can properly manage it.

Discussion
MmadiOption: D

D. Add the activity to the AndroidManifest.xml

MmadiOption: D

D. Add the activity to the AndroidManifest.xml