Forum Xamarin.Android

Missing app icon in app drawer after installation

AnnXAnnX Member ✭✭

Hi

I developed an app with Visual Studio 2019 that is not going to be published in the app store. When I install from the APK, the app is **not ** there in the app drawer and not on the home screen. But when I use the finder, it can be started from there.

Any idea what could be missing?

Best Answer

Answers

  • YelinzhYelinzh Member, Xamarin Team Xamurai

    Have you set the icon for the application in AndroidManifest.xaml?

    <application
        …
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        …>
    </application>
    

    Check the tutorial:
    https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

  • AnnXAnnX Member ✭✭

    Thanks Jarvan! I checked the icons and icon references in my app and they are fine. Also, the icon shows up when the finder displays my app, therefore I think that the icon's not corrupt.

  • YelinzhYelinzh Member, Xamarin Team Xamurai

    Make sure that intent-filter for MAIN and LAUNCHER is not mixed with other intent-filter. If the intent-filter is configured with different kinds of data and actions in AndroidManifest.xaml, please divide the intent-filter to multi parts like:

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

    Similar issue: https://stackoverflow.com/a/48454230/11083277

  • AnnXAnnX Member ✭✭

    Thanks for pointing me to that! But that's also not the problem.
    I suppose that my developer device is the cause, because when I install the app on another device (same model) it shows up normally in the app drawer.

  • AnnXAnnX Member ✭✭

    Thanks for pointing me to that! Clearing the cache of the launcher did the trick, now the app shows up fine after installation.

Sign In or Register to comment.