简体   繁体   中英

How to create my own icon in android launcher

I have my own application. And I need to make a function in my app, which will create my own icon in android launcher to some activity in this application. How can I do it? Thanks for your help.

PS I don't need to EDIT my current icon, I need to CREATE NEW icon with some params to my app (like intent), icon should have my own picture and text.

It's should work like chrome function "Add to home screen" which can add a website to your launcher.

您可以在清单中更改应用程序图标

android:icon="@drawable/your_icon_image"

Add your icon to mipmap folder, then inside your manifest add this value inside application tag :

   <application
       ...
       android:icon="@mipmap/ic_launcher"
       tools:replace="android:icon">

Also it's not recomanded to put it inside drawable folder, make sure it's inside mipmap folder.

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