Easiest way to set Application icon and name in android studio?

Easiest way to set Application icon and name in android studio

You are the android developer or just creating the android app. You have completed the design and development. 

Now, you want to add the icon for that android app. How will you change it programmatically?

In this tutorial, we'll see how to set an Application icon in android studio.

    How to set an Application icon in Android studio?

    Before getting started, make sure that the rest of the project files like Activity_main.xml and MainActivity.java files are correct. It has no errors.

    1. Follow this path - app > src > main > res > mipmap (there are so many mipmap folders you can choose any one according to your need and the size of the icon) under your android project.

    res path for mipmap icon

    2. Put the app icon in that mentioned resource folder.

    3. Now, open the AndroidManifest.xml file and add the following code snippet to the file.


    4. Replace the Whats_on_my_plate_icon with your icon file name.

    5. Save the AndroidManifest.xml file and run the project.

    This is how you can change the Android App icon programmatically on android studio.

    How to change an app name on Android Studio?

    You can edit the app name just like the app icon. You can change the app name using the strings.xml file. 

    I. For the strings.xml file method, there we'll need to provide the app name to the variable and after that, you have to use that variable in the Manifest file.

    Open the strings.xml file using the path app > src > main.

    Put your app name within string tags

    <string name="app_name"></string>

    Ensure that android:label="@string/app_name" this code is added in your AndroidManifest.xml file

    II. You can directly provide the app name in the AndroidManifest.xml file also.

    Open the AndroidManifest.xml file


    Now remove the @string/app_name and add your app name directly here.

    After all the editing work, save the AndroidManifest.xml file and run the project. Your android app default name will get updated.

    Android asset studio - Android app icon generator

    One of the best and open-source Android app icon generator tools is Android asset studio(Icon generator).

    You can use this free tool to generate an Android launcher icon, Application icons, notification icons, etc.

    1. First of all, launch the Android asset studio

    Android asset studio
    Android Asset Studio

    2. Then, choose the Image, Text, or Clipart whatever you want on your app icon

    3. Select the trim option and adjust the padding according to your need

    4. Now choose color, shape, and effects, and provide your desired app name

    5. After that, select the download button to save your App icon

    Still not satisfied, and want more options to customize your app icon? try this tool called, IconKitchen.

    It's a much better Android and iOS app icon designer tool than Android asset studio.

    How to change an Android app icon without Android studio?

    For any reason, you want to change your android app icon, and you don't have android studio installed on your machine. 

    Still, you can change and edit the app icon by using your android project files. 

    Just open the android project folder using File explorer and search for the AndroidManifest XML file. Open it and do the required changes which we previously explained.

    FIX: App icon not changing on the android studio!

    There could be so many reasons behind the App icon isn't changing like provided wrong app icon path or the wrong variable used in the AndroidManifest.xml file. 

    Try to do the following when adding the app icon to your android app project in android studio.

    • Keep App icon in mipmap folders
    • Provide the correct path of the Application Icon
    • While adding the icon name in the AndroidManifest file, don't put file type extensions there like .png, .svg, etc.

    Conclusion - Set application icon in Android studio

    From the above article, we've concluded that we can set the android app icon and name using the AndroidManifest.xml file as explained in the article.

    If you want to design your own app icon, you can try Android asset studio and IconKitchen. Both the tools are just amazing and free to use!

    If you've any questions about this tutorial, please let us know through the comment section.

    Post a Comment