Android APK installs multiple icons / activities?

后端 未结 1 1919
陌清茗
陌清茗 2021-01-14 07:06

I have one program that has multiple layouts/activities. I install the APK and i have 3 APP icons in my installed apps location! I thought it was maybe my debugging environm

相关标签:
1条回答
  • 2021-01-14 07:17

    You shall edit your manifest file and remove intent-filter entry from all activities you do not want to be shown by launcher. So keep this:

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

    only for that one you want to be your entry point.

    0 讨论(0)
提交回复
热议问题