Intents and types in Android

In Android, intents are objects that allow communication between components such as activities, services, and broadcast receivers. Intents are used to start an activity, launch a service, deliver a broadcast, or open a webpage.

There are two types of intents in Android: explicit and implicit.

Explicit Intent: It is used to launch a specific component within an application. It specifies the component name or the fully-qualified class name of the component that should be launched.

Implicit Intent: It is used to invoke a system service or an activity outside the application. It specifies an action to be performed, and the system finds the appropriate component to handle the action. An Intent Filter is used to declare the capabilities of a component. It allows a component to respond to an implicit intent from another application. It contains the action to be performed and the data type that the component can handle. When an application sends an intent with a matching action and data type, the system launches the appropriate component to handle the intent.

Apply for Android Apps certification!

https://www.vskills.in/certification/certified-android-apps-developer

Back to Tutorials

Get industry recognized certification – Contact us

Menu