Https://developer.android.com/guide/components/intents-filters.html
Intent
is a messaging object that you can use to request operations from other application components. Although Intent can facilitate communication between components in a number of ways, its basic use cases include the following three:
- Start Activity:
Activity
Represents a screen in an app. Intent
startActivity()
You can start a new instance by passing it to Activity
. Intent
describes the Activity to be started and carries any necessary data.
Call if you want the results to be received after the Activity completes startActivityForResult()
. In the activity onActivityResult()
callback, your activity receives the result as a separate Intent
object. For more information, please see the Activity Guide.
- Start the service :
Service
is a component that performs operations in the background without using the user interface. By Intent
passing it on startService()
, you can start the service to perform a one-time operation (for example, download a file). Intent
describes the service to be started and carries any necessary data.
If the service is intended to use a client-server interface, by passing it on Intent
bindService()
, you can bind to the service from other components. For more information, please refer to the service guide.
- Delivery Broadcast :
Broadcasts are messages that can be received by any application. Various broadcasts are delivered for system events, such as when the system starts or when the device starts charging. Intent
you can pass the sendBroadcast()
broadcast to another app by passing it to, sendOrderedBroadcast()
or sendStickyBroadcast()
.
[Android Development Article] [Application Components] Intent and Intent Filters