What is an Intent?
Intent: is a message passing mechanism between 2 components of android.
There are 2 use cases of intents.
1. You can start other component using intent, except content provider.
eg: you can start one activity from other activity by using intent.
You can also start a service from an activity.
2. You can use intent to pass some data from one component to other component.
Eg: you can pass username and password from login screen to home screen of your application.
There are two types of intents are there in android. a. Explicit intent b. Implicit intent.
Back To Top