Junior — Middle
What happens if you set the same intent-filter for multiple Activities in an Android application?
sobes.tech AI
Answer from AI
If multiple Activities in an Android application have the same intent-filter, then when an intent matching this filter is launched, the system will prompt the user to choose which Activity to open (if no default has been set).
This happens because the intent-filter defines which components can handle certain actions or data. If multiple components match, Android shows a selection dialog.
If the user chooses "Always," the selected Activity becomes the default handler for that type of intent.
Thus, having the same intent-filter for multiple Activities can lead to user choice prompts and potential confusion if not handled by the application's logic.