Bomber
Bomber

Reputation: 10947

Android app icon is default icon on homescreen

I cannot update the icon on the homescreen. It is the green robot default android icon. How can I change this to the icon?

I have added icons in the app > src > res folder for different resolutions.

I am uploaing my app using the play console. Any ideas?

My manifest states:

  android:icon="@mipmap/ic_launcher"

The name matches the image in the assets folders.

Here is a link to my repo:

https://bitbucket.org/matthisco/ejected-calendar/src/master/android/app/src/main/

Upvotes: 0

Views: 4856

Answers (5)

optitrac
optitrac

Reputation: 1

I faced the same issue, but I realized that in the Android Manifest

android:roundIcon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher"

were pointing to the same images, which were square. The phone I was testing on had a round icon, and so the default android image was displaying, I presume because the format was incorrect. When I then tested on a phone with a square image, the images were displaying correctly.

Upvotes: 0

varun setia
varun setia

Reputation: 148

Change project to android than go to res>mipmap>paste your icon there (iconName.png) replace

android:icon="@mipmap/ic_launcher" in manifest

to

android:icon="@mipmap/iconName"

Upvotes: 2

Rishav Singla
Rishav Singla

Reputation: 483

You can update the homescreen icon as follows:

In AndroidManifest.xml under application tag

 <application
  android:icon="@mipmap/yourdesiredIcon"/> // replace ic_launcher to desired icon

Upvotes: 1

sebasira
sebasira

Reputation: 1834

The correct folder where the Android icon must be placed is res->mipmap-xxxx where xxxx signals the screen resolution.

Also check that your manifiest is using it. Open the manifest and in the application tag you should have something like this:

android:icon="@mipmap/ic_launcher"

Also verify you icon is named ic_launcher.

As you can see that entry in the manifest says "go look for the icon in the mipmap folder, use the one named ic_launcher"

Upvotes: 0

Saurabh Mistry
Saurabh Mistry

Reputation: 13669

Goto app > src > main > res

rename your icon to ic_launcher.png and paste it to all mipmap folders

Upvotes: 0

Related Questions