Android app does not start after changing startup activity
I have created a simple android app and I am trying to create another startup activity. The app executed (with the old start activity) when my manifest said:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".EnrollActivity"
android:label="@string/title_activity_enroll" >
</activity>
<activity
android:name=".RecordActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
I changed the activity section to:
<activity
android:name=".EnrollActivity"
android:label="@string/title_activity_enroll" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".RecordActivity"
android:label="@string/app_name" >
</activity>
Now when I press the start button, nothing launches on my connected device. However, a launcher icon called EnrollActivity is added on my device and if I click on it, it works as expected.
How do I get the start button to start the application again (with the correct name)?
+3
source to share