Manifest File
Inside our manifest file, we have defined two activities: Activity A and Activity B.
- Activity A is set as the entry point of the application, specified by the intent filter with the action “action.main” and category “category.launcher”.
- Activity B is another activity in the application, with the category “category.default” and the action “com.birbal.activityb”.
If both activities are set as the entry point, both will be visible when you open the application.
It is not recommended to use the same category “category.launcher” for multiple activities.
Intents
To move from one activity to another, we use explicit intents.
The syntax for creating an intent is: