This question already has an answer here:
- Change application's starting activity 10 answers
I want to create own activity as main activity rather than using default MainActivity
.
How can I define that in android manifest?
This question already has an answer here:
I want to create own activity as main activity rather than using default MainActivity
.
How can I define that in android manifest?
You can use in manifest file:
It is very important:
In
Xamarin
, you can addMainLauncher = true
above class definition like this:In your manifest file , use the below code to declare an activity as a launcher activity:
From Android Developer docs:
In AndroidManifest.xml file inside application tag add an activity tag and remove action MAIN from old activity tag set that as default
It's Simple. In your android manifest file add,