cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-7809) Put default app images in www/res
Date Fri, 17 Oct 2014 01:36:33 GMT


Shazron Abdullah commented on CB-7809:

Confused with what you are asking here. You should not need to go into any of the platform
folders to update your splash screens or icons, the CLI will copy them over. See

<platform name="android">
    <!-- you can use any density that exists in the Android project -->
    <splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/>
    <splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/>
    <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>
    <splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/>

    <splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>
    <splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>
    <splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
    <splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>

The src attribute paths are off your project root (and you create them if needed). What you
name them is unimportant, the important part is the "density" value I believe.

> Put default app images in www/res
> ---------------------------------
>                 Key: CB-7809
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaLib
>    Affects Versions: 3.5.0
>         Environment: Any Environment
>            Reporter: Steve Husting
>            Priority: Trivial
>              Labels: icons, splashscreen
> People are confused about how to update the splash screens during their Android build.
Why not place all the default app helloCordova icons and splashes in the location you recommend,
in /helloCordova/android/res/* instead of in /helloCordova/platforms/android/res/*? Then fill
the config.xml with the lines needed to port the files over to Android via CLI as you recommend.

> This example of proper placement and config.xml usage will remove all users' doubts about
where to put the icons and splashes. 
> I assume you could programmatically set up the default app so that the entire /platforms/android/res
folder structure is reproduced in /helloCordova/android/res/ to make it easy to understand
where to put the user's own files. They'll replace those icon.pngs and screen.pngs with their
own. You would program the same thing with iOS files in /hellocordova/ios/res/ .
> Just a suggestion! 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message