Software Archive
Read-only legacy content
17061 Discussions

XXHDPI and XXXHDPI icons support in Intel XDK

vijay_r_
Beginner
121,597 Views

Hi All,

We have been working on a android app which needs XXHDPI and XXXHDPI support, unfortunately the intel XDK build system says "Skipping xxhdpi due to invalid density" Please help.

We have used the intelxdk.config.additions.xml

<!-- +Android --><icon platform="android" src="images/xxhdpi.png" density="xxhdpi" width="144" height="144"/>
<!-- +Android --><icon platform="android" src="images/xxxhdpi.png" density="xxxhdpi" width="192" height="192"/>

With no luck, please see the below screen shot for reference. Please let us know how should we resolve this. Thanks.

IMG-20141227-WA0000.jpg

0 Kudos
11 Replies
Elroy_A_Intel
Employee
121,596 Views

What device(s) are you running this application on? When setting the icon configuration, you are not required to include width and height for the Android platform. Can you share your Intel XDK Build Log?

For more information, visit http://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html

0 Kudos
Mika_C_
Beginner
121,597 Views

Hi I have this problem too.
I have to make an application, with icons xxhdpi, and is not possible.

I'm working with Intel compiler CrossWalk XDK

In the file
intelxdk.config.crosswalk.xml

I add
<icon platform="android" src="res/icon/android/iiiicon-144-xxhdpi.png" density="xxhdpi" width="144" height="144"/>
<icon platform="android" src="res/icon/android/iiiicon-192-xxxhdpi.png" density="xxxhdpi" width="192" height="192"/>

but when compiled, Intel XDK, eliminates those lines.

Any ideas?

0 Kudos
Mika_C_
Beginner
121,596 Views

Hello, can someone tell me how to include icons and xxxhdpi xxhdpi?

I am including by file:
intelxdk.config.additions.xml

But on Intel LOG XDK when compiled with CrossWalk gives this error:
Installed mdpi launch icon
Installed hdpi launch icon
Installed xhdpi launch icon
Skipping image, unrecognized density "xxhdpi"
Skipping image, unrecognized density "xxxhdpi"

I find no way to accept xxhdpi or xxxhdpi

Any ideas? I have a paper due, and mobile very definition screen of the app icon looks ugly.
My client does not like.

Thanks!

0 Kudos
John_H_Intel2
Employee
121,596 Views

XXHDPI and XXXHDPI icons are currently not supported in the Android Cordova builds. 

I do not have a date on when they will be available.

0 Kudos
FP
Beginner
121,597 Views

Hi guys - is there any update on xxhdpi support for Android? It's becoming an increasing issue with bigger, higher density screens - the automatic scaling up is not ideal for a professional looking icon.

Thanks in advance.

0 Kudos
PaulF_IntelCorp
Employee
121,597 Views

I figured out a workaround. The CLI 4.1.2 build system will support this, but our build system (and the XDK) don't know about the XX and XXX sizes. However, Cordova CLI 4.1.2 does know about those sizes. So here's your workaround:

  • copy your XX and XXX icons into your source directory (usually named www)\
  • add the following lines to your intelxdk.config.additions.xml file
  • see this Cordova doc page for some more details

Assuming your icons and splash screen images are stored in your source directory (www), then add lines similar to the intelxdk.config.additions.xml file (the precise name of your png files may be different than what I have here):

<!-- for adding xxhdpi and xxxhdpi icons on Android -->
<platform name="android">
    <icon src="www/xxhdpi.png" density="xxhdpi" />
    <icon src="www/xxxhdpi.png" density="xxxhdpi" />

    <splash src="www/splash-port-xhdpi.png" density="port-xhdpi"/>
    <splash src="www/splash-land-xhdpi.png" density="land-xhdpi"/>
</platform>

The precise names of your PNG files are not important, but the "density" designations are very important and, of course, the respective resolutions of your PNG files must be consistent with the Android requirements. Those density parameters specify the respective "res-drawable-*dpi" directories that will be created in your APK for use by the underlying Android OS. NOTE: I've added the splash screen references for example, you don't need to use those.

You can continue to insert icons into your app using the XDK, or do all of them this way. Since there is no way to remove icons from the Projects tab (something I've been asking for), you'll have to remove them from the <project-name>.xdk file directly (it's up to you).

Give it a try and let me know how well it works. I did only a quick test and confirmed they show up in the right places in the APK file, I did not do a complete test, but this should work based on the results of my test.

0 Kudos
Gary_H_2
New Contributor I
121,597 Views

Can I do the same for Crosswalk builds because I tried it and it didn't seem to work?

0 Kudos
PaulF_IntelCorp
Employee
121,596 Views

It does not yet work correctly on our build system. The build system does some pre-processing of icon and splash screens (due to having to do this for the older build systems) and is not properly handling the xx and xxx icon sizes. There is an open bug that has been filed to address this, but I cannot say when or how soon it will be available.

0 Kudos
Gary_H_2
New Contributor I
121,597 Views

Any update on this issue? I would like to add xxhdpi and tvdpi icons to my Crosswalk 15 build.

0 Kudos
John_H_Intel2
Employee
121,597 Views

You should be able to add icons that are larger than the specified values for android. I believe they are the min allowed, but can be bigger.

0 Kudos
PaulF_IntelCorp
Employee
121,595 Views

Gary, try using the technique used in the "hello-cordova" demo app. See the intelxdk.config.additions.xml file.

0 Kudos
Reply