Skip to content Skip to sidebar Skip to footer

Providing Custom Activity Name Instead Of Main Activity In Android Studio While Creating New Project

I have just started learning to use Android Studio and using examples of login and registration codes given in various blogs. Problem: Whenever I launch a new project, the defaul

Solution 1:

actually it's very easy. you can refactor the file name and Android Studio handle the errors.

enter image description here

Solution 2:

Press Run > Debug Configurations and check out next

Launch: Default Activity

After it go to manifest and find activity you want to launch first. Add to it intent-filter:

<activityandroid:name="packageName.yourActivityName"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"/></intent-filter></activity>

Post a Comment for "Providing Custom Activity Name Instead Of Main Activity In Android Studio While Creating New Project"