How do you set activity as main activity?

How do you set activity as main activity?
Answer
Go to
AndroidManifest.xml in the root folder of your project and change the Activity name which you want to execute first. If you are using Android Studio and you might have previously selected another Activity to launch. Click on Run > Edit configuration and then make sure that Launch default Activity is selected.
 

Tìm kiếm

Back
Top