Reputation: 595
I have upgraded my Android studio. I think there is something different from the previous version When I finished writing the code and compile then run. I look something different like this:
Whether it's something new or I destructive my android studio settings
Upvotes: 1
Views: 50
Reputation: 680
this is happening because you have posted below code in three different activities in AndroidManifest.xml
file.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
the mistake you have done is like below in AndroidManifest.xml
file:
<activity
android:name=".SplashActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Upvotes: 0
Reputation: 236
May be you create multiple intent-filter in android AndroidManifest.xml.
Upvotes: 1