How to change the icon and label of an app once it is installed?

大兔子大兔子 提交于 2019-11-29 11:11:22

The code posted in the question is apparently the correct way to do it. There is an issue with Android 4.1 and 4.2. Find more details here:

https://code.google.com/p/android/issues/detail?id=54546

I think I may be able to help you. Under the manifest tag there is this:

<application
    android:allowBackup="true"
    android:icon="@drawable/launcher_icon"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" />

You can edit these and change it to the icon that you saved in your drawables for your launcher and you can also change them name to a different string.

To change the name of your application right click the application folder in the package explorer, look for "Refactor" and press rename.

To change the icon of your application you have to change all of its variations inside the drawable folders and also the "ic_launcher-web.png" inside your res folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!