Skip to content

Commit

Permalink
refactor: Use Activity alias to launch the MainActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiknsanji committed Oct 31, 2019
1 parent 32bc83a commit 92eaeec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.kaushiknsanji.hydrationtrackerdemo">
package="com.example.kaushiknsanji.hydrationtrackerdemo"
android:installLocation="auto">

<application
android:allowBackup="true"
Expand All @@ -24,17 +25,25 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<!-- For the Main Activity -->
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<!-- For the About Activity -->
<activity
android:name=".AboutActivity"
android:theme="@style/AboutTheme" />

<!-- Launcher Activity as alias to the Main Activity -->
<activity-alias
android:name=".LauncherActivity"
android:targetActivity=".MainActivity" />

</application>

</manifest>

0 comments on commit 92eaeec

Please sign in to comment.