[ 
https://issues.apache.org/jira/browse/CB-7809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14177408#comment-14177408
 ] 

Steve Husting commented on CB-7809:
-----------------------------------

If you never intended for cordova build android to copy screen image from one 
location to the /platforms/* location, then you should change the docs to 
reflect this: 
android/screen-hdpi-landscrape.png 
... and so on should be changed to ...
/platforms/android/res/drawable-land-hdpi/screen.png
... to be more accurate. 

Otherwise it seems that we are being asked to make a /myApp/android directory 
and include all those screen-*.png files in it, and they would be transferred 
over on cordova build. We get this impression because the icon files work that 
way. Why would the splashscreens be done differently from the icons? 

If we make all our Android screen names like screen-hdpi-landscrape.png as it 
says at the beginning of the online docs on splashscreens, then we need to 
change all the names to screen.png when we read further down the doc. That's 
part of the confusion: we create all our splashscreens in one /android folder 
with a long name, then we copy and rename all those files into the 
/platform/android/res/* folders. 

So in the final analysis, it appears that the docs mean for us to put the icons 
in /myApp/res* and reflect this folder structure in config.xml, then they'll be 
transferred over via config.xml. But there's no way to transfer over screen.png 
files built into cordova build android; we are to copy them directly into 
/platforms/android/res/*. But the earlier part of the docs seems to refute that 
because it states specific folders and filenames that contradict the idea of 
saving them directly into the /platforms folders. 

> Put default app images in www/res
> ---------------------------------
>
>                 Key: CB-7809
>                 URL: https://issues.apache.org/jira/browse/CB-7809
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to