What will happen if an activity is started with implicit intent, and there is no matching intent-filter?

Answer:
it will throw run time exception - activityNotFoundException, and crashes if it is not handled properly.

Description:
for startActivity(intent), if there are no matching target components or activities, then it will throw run time exception - ActivityNotFoundException, and will crash the program if this exception is not handled.

No comments:

Post a Comment