Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change the launcher logo of an app in Android Studio?

I was wondering how to change the launcher icon in Android Studio.

like image 981
user3535901 Avatar asked Oct 28 '14 18:10

user3535901


People also ask

How do I change an Android app icon?

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Further follow the path to reach the desired folder to add icon (app → res → mipmap). Step 3 - Add you app icon. You can just simply copy and paste the image in mipmap folder.

Can you change the icon of an application?

Right-click on the shortcut and select “Properties” from the dropdown menu. Navigate to the “Shortcut” tab. Select “Change Icon” at the bottom of the window.

How do I change Mipmap on Android?

Navigate to the resources directory (app > src > main > res) and expand out some of the mipmap folders. These mipmap folders are where you should put the launcher icon assets for your Android app.


2 Answers

Here is another solution which I feel is more sensible for those working on Android Studio:

  1. Expand the project root folder in the Project View
  2. Right Click on the app folder
  3. In the Context Menu go to New->Image Asset
  4. In the pop up that appears select the the new logo you would like to have(image/clip art/text).
  5. If you were selecting the image radio button (as is the default choice), if you clicked on the 3-buttons to show the path tree to locate your .png image file, most probably you might not be seeing it, so drag it from the Windows Explorer (if Windows) and drop it in the tree, and it will appear and ready for being selected.

That is it! You have a new logo for you app now.

like image 129
Coder X Avatar answered Sep 20 '22 15:09

Coder X


Look in the application's AndroidManifest.xml file for the <application> tag.

This application tag has an android:icon attribute, which is usually @drawable/ic_launcher. The value here is the name of the launcher icon file. If the value is @drawable/ic_launcher, then the name of the icon is ic_launcher.png.

Find this icon in your resource folders (res/mipmap-mdpi, res/mipmap-hdpi, etc.) and replace it.

A note on mipmap resources: If your launcher icon is currently in drawable folders such as res/drawable-hdpi, you should move them to the mipmap equivalents (e.g. res/mipmap-hdpi). Android will better preserve the resolution of drawables in the mipmap folder for display in launcher applications.

Android Studio note: If you are using Android Studio you can let studio place the drawables in the correct place for you. Simply right click on your application module and click New -> Image Asset.

For the icon type select either "Launcher Icons (Legacy Only)" for flat PNG files or "Launcher Icons (Adaptive and Legacy)" if you also want to generate an adaptive icon for API 26+ devices.

like image 44
Bryan Herbst Avatar answered Sep 16 '22 15:09

Bryan Herbst