Android icon not changing - android

I've developed several Android applications and this never happened to me, and is troubling my mind.
I have an application launcher icon named ic_launcher on the android several folders (xhdpi, hdpi, mdpi and ldpi). My Android Manifest looks like this:
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<uses-library android:name="com.google.android.maps" />
And the application icon is simply the default android one. I've cleaned the project, refreshed, built from several different computers, used ant to crunch the png's and nothing.
I'm starting to think it's a problem with cached files on my Android or something (I use Miui on my S2) however I'm not sure.
Anyone have better suggestions?

I found that I had to delete ic_launcher.xml since this contains a path with the default icon encoded in it.

The problem was with MIUI caching application icons. I searched and removed the existing icon and everything worked as expected from now then.
MIUI icon caching problem still present as of MIUI 9
Step to clear caching: Settings > Installed Apps > Search for your app > Storage > Clear cache > Restart your phone

Change your theme if you are using MIUI. Icon will refresh..

I had this same problem, and rebooting the device made the new icon show up.

I had the same issue and checked around for similar posts. I deleted the bin directory and just had eclipse recompile and send the new apk to the device.

Andorid will take images depending on the DPI(Density in Pixels) your are using, since you are using S2 my guess is that put your needed image into x-hdpi and check.

If I were you, I was going to delete these icons from my res folder and build my application without them. If it can be installed to device, so it's probably some kind of cache yes, if it's not, I suggest you to change the name of your icon in your manifest and use another one just to see.

If you are in MIUI go to apps in setting and clear the data. Make sure that you restart your phone.

I had the same problem so i deleted the old icon from res file and after clearing cache restart the device and then it worked.

Do you see "classes/res-cache" folder in your project's root? If so, delete it. Helped for me.

It also happens on some HTC devices. It's because the launcher caches the icon and does not refresh it even after your modification.
You can kill the process of your launcher to resolve it. Doing so works on my HTC One.

If using Z-launcher, go to Z-launcher settings, then change the icon theme to something else and back to your desired value, icons will refresh

Also remember to check dinamic xmls default icons on drawable and anydpi folders

In my case, after searching a lot from internet, i have found that there is some kind of cache on the device on which we try to run the app, in order to clear the cache from that device, i have simply restarted my device and the icon updated on rebooting.

Related

Flutter doesn't update launcher icon

I created a new icon for my app and I used flutter launcher icons for generate the launcher icon.
In the midmap folders there is the ic_launcher.png and if I open it is my new launcher icon.
But if I install the app via android studio on my phone it shows the old icon.
It happened to me even when I created the first icon.
It went all well but the app had the default flutter icon.
It started to show the new one when I changed the app name but now I cannot change it again.
I already tried with the flutter-launcher-icons widget, to use flutter clean, ecc... but it doesn't change.
Why there is this problem? And where the app takes the old logo information?
UPDATE
I discovered a workaround for this problem.
If I delete all generated files (even the ones that looks right) and then I regenerate them when I install the app on the phone the icon looks right.
There will be 5 different mipmap files within android/app/src/res/main folder. Each mipmap consists icon launcher of different dimensions and pixels. Make sure you have replaced all 5 icon launchers with your generated Icon Launcher.
You can Generate Icon Launcher from here.
I see this issue still hasn't been resolved. I did find a workaround when I ran into the same problem. Just add
adaptive_icon_foreground: 'assets\logo.png'
adaptive_icon_background: '#000000'
in your pubspec.yaml under flutter_icons: where you can mention any suitable background color in hex for adaptive_icon_background.
I've had a similar problem, where the app icon would always be the androids default one. The way I fixed this, was by looking at the following Github thread: https://github.com/flutter/flutter/issues/59305
I noticed, that there was an error in my AndroidManifest.xml, where the android:icon="#mipmap/launcher_icon" was not inside the application-tag. After placing the ">" after android:icon="#mipmap/launcher_icon", it worked for me.
How it looked:
Not working
How it should look:
Working
I hope this helped

Device shows default droid icon instead of app launcher icon

I changed the launcher icon file and it's name(from ic_logo to ic_launcher) and made respective changes in the Manifest.
Some devices(Moto-G, Moto Razor) which updated the app since then see the default droid icon instead of the actual ic_launcher icon.
The same devices would see the proper launcher icon if the app is uninstalled and reinstalled, instead of just updating.
It shouldn't be a problem with the folders the icon is placed in. Because it works fine on most of the devices and after uninstall and reinstall on the above mentioned devices. Just for reference:
Anything I can do to make it work in the next update(without uninstalling)?
Clean your project once and then try
For Application Icon, try to put them in #mipmap directory. That's what Google recommends and sometimes stupid bugs happen when you don't follow the guidelines.
Read
mipmap drawables for icons

Strange icon issue in Android Studio

So, I have developed the first build of my own android flashlight application and I want to distribute it, but the problem is following;
I have created appropriate icon for the application and they all are scaled in the right way too using romannurik.github.io, the icons have been placed, I assume, in the correct way - I browsed to the project directory and replaced all sample icons (stock icons) with my own icons. Now, I have tried rebuilding and cleaning the project, yet nothing helps it.
In Android Studio, under mipmap folder, all icons are located, here is how the folder including pictures looks like
And by clicking on those .png's, I see the icon the application should have, but after I launch it on my phone, it still has the stock icon. Even setting build type to release, it still does the same. I also tried to relaunch the Android Studio and still nothing does it.
Some help? Thanks!
The icon is setted in the AndroidManifest.
<application
android:icon="#mipmap/ic_launcher"
Are you sure that you do not have this?
android:icon="#drawable/ic_launcher"
UPDATE
As you can see from the comments on this post, the user has a malformerd AndroidManifest screenshot manifest
There is a nested application tag with ther android icon property.
You should set application icon in your manifest

can't change action menu icon in android app

It's less than I can't change it, (Since I already did), and more and issue that I can't change it BACK.
So I'm using eclipse to learn android app development. In one of the tuts on the android developer website, it says you have to add your own ic_action_search.png file for the action bar to find. (Else it won't compile). So I made my own goofy looking icon. I added it, and it's there. Ok.
So Afterwards, I found the Android Design Icon pack from google. It looks much better and decided to plug that back in. I thought that would be easy. I took the new file, (With the EXACT same names), and plugged them back into the source folder where the others were. It OVERWROTE the other files and I have confirmed that the correct icons are now in there.
When I run the program using USB debugging on my phone though, the OLD icon is still there.
I tried refreshing the folders inside eclipse. I tried uninstalling the app from my phone and then re-installing fresh using USB debugging in eclipse. Still no go.
I'm worried that my device stored those images somewhere in my phone and isn't overriding them on the new install. Really need help with this here.
Any ideas?
Refresh your project F5
Go to
Project > Clean
if that doesn't work delete /gen and /bin folders of your project to recreate all the references of your resources.
probably you are uploading an .apk file with the old resources

Android, Why launcher icon and other images never change when I update my images?

I released one version of my application. For this version I had an image for launcher icon. For next version (update), I replaced this icon with other image.
My problem is when I update last version with new one, new launcher icon doesn't display and old one is still displaying.
However, if I clear data before uninstall and after that uninstall then by installing new version I can see new launcher image. The problem is I cannot ask all customers one by one please clear data and then uninstall before updating to new version.
What is the solution?
I have changed launcher icons for my apps several times, and have no problems with it (user base is few millions users). You have nothing to do in your source code, just replace your .png file in res folder and rebuild your project.
Note: if you are building final .apk using some IDE (Eclipse, IntelliJ IDEA, etc.) do not forget to refresh and make a full clean of your project before building it.
Please check you have mention the icon in the manifest
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
</application>
I have the same issue when i was not added the icon in the application tag. but it got resolve after add the icon in the application tag
It should be as easy as replacing the image, but sometimes it doesn't work on eclipse. I solved it just deleting the old icon launcher (all versions mdpi,hdpi...) and then pasting the new ones with a different name.
Maybe it is not your case, but it was my case, and it could be for another one.

Categories

Resources