Activity is class that represents an actual screen
Activity that will be launch first when app starts is called launcher activity
To Launch activity
- When project was created first time There will be 2 files
- MainActivity.kt
- activity_main.xml
⇒ Launcher activity is set on manifest file in manifest folder
- by default activity_main is set to be launch activity when no other file are available
set launcher activity
- when you create new activity
- Select Launcher Activity box under Layout Name
- If you have more than one activity selected as Launcher activity then
⇒ How to disable activity from launch
- First find :
- project files / manifest folder / manifest.xml file
- Now open manifest file
- in that you find every activity tag that has been created
- now remove
<intend-filter> … </inten-filter>tag from that activity tag that you want to disable from launching.
- Now set value to
falseof exported Attribute in tag