If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?
If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?
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.
D. Add the activity to the AndroidManifest.xml
D. Add the activity to the AndroidManifest.xml