Intents and intent filters are the way that we as developers can give our apps a personality. These pieces of code tell the app what to do in response to a user's voice command. This is why we need to keep them simple and clear so that they can be easily understood by users and other developers.
The following are some examples of intents:
- “Play the song”
- “Add this song to my playlist”
- “What was this song?”
The following are some examples of intent filters:
- “Remove this from my playlist”
- “Play all songs in my playlist”
Share a personalized message with your friends.