An Android app typically has several activities. Each activity displays a
user interface that lets the user perform a specific task, such as viewing a map or taking a photo.
To take the user from one activity to another, your app must use an
Intent to define your app's "intent" to do something. When you pass an
Intent to the system with a method
the system uses the
Intent to identify and start the appropriate app component. Using intents
even lets your app start an activity that is contained in a separate app.
Intent can be explicit, to start
or implicit, to start any
component that can handle the intended action, such as "capture a photo."
The topics in this guide show you how to use an
Intent to perform some basic
interactions with other apps, such as starting another app, receiving a result from that app, and
making your app able to respond to intents from other apps.
- Sending the user to another app
- Shows you how to create implicit intents to launch other apps that can perform an action.
- Get a result from an activity
- Shows you how to start another activity and receive a result from the activity.
- Allow other apps to start your activity
- Shows you how to make activities in your app open for use by other apps by defining intent filters that declare the implicit intents your app accepts.
- Package visibility filtering on Android
- Shows you how to make other apps visible to your app if they aren't visible by default. Applies only to apps that target Android 11 (API level 30) or higher.
- Fulfill common use cases while having limited package visibility
- Shows several types of app interactions that might require you to update your app's manifest file so that other apps are visible to your app. Applies only to apps that target Android 11 (API level 30) or higher.
- Limit loading in on-device Android containers
- Shows you how to limit your Play Store app from loading in a simulated Android environment app, also known as an on-device Android container.
For additional information about the topics on this page, see the following:
- Sharing simple data
- Sharing files
- Integrating Application with Intents blog post
- Intents and Intent Filters