Skip to Content
author's profile photo Former Member
Former Member

How to change cordova android .apk icon

Hi sir/madam,

I have done android app using sapui5 and cordova but i dont know how to change this .apk icon please anyone can help me

thank you

Regards,

Manjunath M M

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Apr 20, 2016 at 02:34 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2016 at 05:44 PM

    Hi Manjunath,

    Steps listed below:

    1) Execute:

    cordova platform rm android

    2) Then go to the folder:

    cordovaproject/res

    and change the icon.png for the imge you want to put.

    3) Finally, execute:

    cordova platform add android

    ...

    And the app will have your new icon.

    Regards,

    Emanuel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2016 at 06:17 PM

    Manjunath,

    The location of the icon is available in the AndroidManifest.xml file as shown in below line.

    <application android:hardwareAccelerated="true" android:icon="@drawable/appicon" android:label="@string/app_name">

    Here drawable is the folder name inside folder res and appicon is the image name.. Replace it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.