1

I have made some icon for my app and I have tested it on some old Samsung galaxy phone and it showed the icon is a nice square shape.

For some reason, on a newer phone + on the Emulator it shows a white circle as follows:

enter image description here

My manifest file looks as follows:

<application
    android:allowBackup="false"
    android:icon="@mipmap/ic_launcher_custom"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_custom_foreground"
    android:supportsRtl="false"
    android:theme="@style/CustomActivityTheme">

and my mimap is:

enter image description here

How can I solve it please?

Thank you

Community
  • 1
  • 1
Ben
  • 1,205
  • 2
  • 18
  • 34

2 Answers2

0

Move the mipmap content out of the project
then create app icons with Asset studio (right click on project panel > new > Image Asset)
and set icons in manifest like this:

  <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
ZIRES
  • 61
  • 6
  • Thank you for your respond but I think it is what im doing right now and it still doesnt work. – Ben Oct 29 '19 at 18:47
0

Manifest :

<application
        android:icon="@mipmap/ic_launcher"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher_custom"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_custom_foreground"
        android:supportsRtl="false"
        android:theme="@style/CustomActivityTheme">

Screenshort:

enter image description here

mipmap-anydpi-v26

enter image description here

After the @drawwable/invitation icon find for this Folder

res/drawable-xhdpi

enter image description here

The @mipmap/ic_invitation_maker icon find for this Folder

mipmap-hdpi

enter image description here

R.Desai
  • 1,112
  • 4
  • 16