Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are there two app icons after installing on the android?

My app shows two app icons after installing it on android with React Native. Why is this happening? Any idea?

I am only using one index.js. I do not have an index.android.js and my version of React Native is 0.50.3.

like image 781
Yonedev Avatar asked Dec 14 '17 22:12

Yonedev


People also ask

How do I change my apps back to normal icon on Android?

Tap the app name whose icon you want to change. Select Icon from the settings menu that opens. The available icons for that app from the various icon packs installed on your phone appear under the Available Icons section. Select the one you like.


1 Answers

My fault :( I have two activity in AndroidManifest.xml with:

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>

Remove one and perfect :)

like image 102
Yonedev Avatar answered Oct 25 '22 22:10

Yonedev