简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM