I
I
Inter Carpenter2015-10-26 17:45:36
Android
Inter Carpenter, 2015-10-26 17:45:36

How to set icon in cordova for android?

I'm writing a project in the Intel XDK environment. I'm building it
using Cordova . I
specified links to icons in the project settings, all in PNG format.
Additionally, I also registered in intelxdk.config.additions.xml

<icon platform="android" src="pkg/android/icon-ldpi.png" density="ldpi" width="36" height="36" />
<icon platform="android" src="pkg/android/icon-mdpi.png" density="mdpi" width="48" height="48" />
<icon platform="android" src="pkg/android/icon-hdpi.png" density="hdpi" width="72" height="72" />
<icon platform="android" src="pkg/android/icon-xhdpi.png" density="xhdpi" width="96" height="96" />

An icon is added to the application, but it is visible only when installing / uninstalling the application.
And on the Android desktop and in the application list there is a standard Cordova picture.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mark Doe, 2015-10-26
@Byrger

There are two options here - either you don’t have all the necessary icons generated (you can create them using cordova-gen-icon ), or, more likely, the cordova icon just fell into the Android cache for this application. How to clean it can be read here (you need to restart the launcher or reboot the phone)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question