How to change default picture application to my own picture?

吃可爱长大的小学妹 提交于 2019-12-11 02:38:20

问题


When I run my application, it's automatically create a droid-bot picture on surface of application. So, I want to change a picture, what should I do?


回答1:


(1) create a PNG image (say icon.png) and save it in the folder:

res/drawable 

(2) Then, in AndroidManifest.xml of your application add the icon tag in your application:

android:icon=”@drawable/icon”

e.g.

<application android:name ="yourAppMgr" android:icon="@drawable/icon" 
                //... >



回答2:


AFAIK you can't change the icon of installed application with some completely custom one, but you can add application shortcut with custom image to the home screen from your application.



来源:https://stackoverflow.com/questions/4802829/how-to-change-default-picture-application-to-my-own-picture

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