I have completed my first app and having problem with launcher icon.
I have repalced the default ic_launcher icon in mipmap folder with my own icon.
When i install the app, it shows the correct icon in phone's menu. But when i open application manager in phone , there it shows the default icon.
Also when i open shareit or xender there also my app has default icon.....
I have spent two days searching for answer and tried all suggestions..But none of them are working.....Please give me a solution....
It is bad practice to just overwrite the icon this way. It is advisable to edit the AndroidManifest.xml file. In the application tag you will find android:icon="#drawable/ic_launcher", change it to the icon you want that is placed in the drawable folder. That way it will be applied everywhere.
For more information: How to change the launcher logo of an app in Android Studio?
Related
While I know that there is no native way of changing the ic_launcher in the manifest, I'm wondering if anyone has came across a smart workaround for allowing users to choose the launcher icon that displays within the app launcher.
My current thoughts is that there may be a way to do this using the mipmap resource folder to do something similar.
App Examples
Deliveroo
Monzo
I just updated an Android app.
I changed icon and logo.
I removed from my mobile and installed. App icon is new one. Also logo is new one.
But when i click (my phone is Xiaomi mi 5 plus) show open apps button, i see my app with old icon!
https://cdn57.androidauthority.net/wp-content/uploads/2015/03/icon-pack-manual-edit.png
It is like this in the picture.
When i click edit on my application, and then click logo, i see "edit icon" screen. Bottom of 2 icons of old icon.
Bottom of it "built-in icon".
Bottom of it "local picture"
When i click builtin icon, i see icons from other apps and also see old icon! But cant see new icon!
But in the app menu, it is with new icon.
In manifest, i correctly put my image:
android:icon="#drawable/xx"
android:logo="#drawable/xx"
Pleease tell me how can i delete that icon from my phone?
After i delete app from mobile, i look builtin icons from another application after clicking edit. There is no icon of old app of. So, new app is bringing it but how? I already deleted the png jpg files of that from res. Where does old icon come?
You might need to delete the app from your phone and download it again. I have experienced the same problems but this worked for me.
I just added an icon to my app using the Android Image Asset Studio using an xml file as the foreground and a plain color as a background. Now in the testing I've done with it, the background of the icon is displaying as the correct color, but the foreground is just the white android logo. I have deleted the app off my phone and reinstalled it in case it was cached as the previous logo, and I don't really know what else to do with it to test it or make it show up correctly, especially since the background changed but the foreground didn't. Any help would be appreciated.
Github link:
www.github.com/jollygreenegiant/WannaCook
Just rename your desired mipmap icon's resource into any name different form ic_launcher
Also make sure you changed the icon name in AndroidManifest.xml
I'm assuming you're testing on API 26+ (not specified in question).
In that case, the Adaptive Icon assets found in your repo (.../res/mipmap-anydpi-v26/) are overriding the PNG icons you hoped to use. This explains why renaming your icon files would resolve the issue, as mentioned in another answer. You can simply remove those files, to correctly resolve the issue. (Or, look into creating your own adaptive icon as described at the link above.)
Your app icon is still mipmap/ic_launcher, and it's foreground is set to the white android icon set by the Android Studio. You should change the code of foreground.
I'm at a loss trying to find the default icon used for the Settings application launcher under \android-sdk\platforms\android-10\data\res\drawable-mdpi\
What name does this icon have? can I use it in my application? here it is:
2.2:
4.0:
If you're looking for a "settings" button for your app, you can include the system icon in your xml using #android:drawable/ic_menu_preferences. It won't get you the nice, colored version you included above, but makes a perfect settings icon in your menu or ActionBar.
I described way you can retrieve full resolution icon of every app installed on your phone/pad here: Getting App Icon in Android.
So all you need is find package name of this app.
It's not as simple as retrieving standard android icon from android resources, but however it can help you.
I would like my application icon to be available to other applications.
I understand this is a bit unclear so will try explain:
Applications such as Astros program manager lists applications with their icon. For all apps this is the correct icon as on the launcher, except mine which is displaying the standard android icon. I have set my icon as the manifest using: android:icon="#drawable/runninglate"
This works on the launcher but Astro still shows the default icon from when I create the project (which I deleted a long time ago). I have also tried renaming my icon file to icon.png in case this was a standard. This also failed to work.
I am clearly doing something wrong, or have missed a setting somewhere, can some one point me in the right direction.
Make sure you have your icon in the <application> element, perhaps in addition to having it in the <activity> element of the activity that should appear in the Launcher.
Seems it was a caching issue. I re-flashed my phone today for an update and the correct Icon was shown using the same APK as I was using when it wasn't showing. Maybe a clear data on the displaying app was all that was required!