[AC-2535] images from res-xxx folders not displayed on Android with SDK 3.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-11-13T23:08:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI, Titanium SDK & CLI |
Labels | android |
Reporter | Sébastien DELCROIX |
Assignee | Mauro Parra-Miranda |
Created | 2013-11-07T17:57:12.000+0000 |
Updated | 2016-03-08T07:41:36.000+0000 |
Description
Hi,
I've just created a new project with Titanium SDK 3.2/CLI 3.2, added an ImageView then run it on a Genymotion-ed device with high density (hdpi).
The image is not displayed if I put it in *"res-notlong-port-hdpi"* (which is the folder corresponding to the device qualifiers).
It's displayed only if I put it at the root of *"images"* folder.
Here's my code :
var imgTest = Ti.UI.createImageView({
image: '/images/black15.png',
top: 20,
borderColor: '#000',
backgroundColor: 'red',
height: 200,
width: 200
});
win1.add(imgTest);
I get error message below in terminal :
{noformat}
[WARN] TiDrawableReference: (pool-3-thread-1) [632,632] Could not open stream to get bitmap
{noformat}
By the way, the splashscreen is picked-up from the right folder.
Same code is working with SDK 3.1.x / CLI 3.2
Same issue here on a Samsung Galaxy S2 running Android 4.1.2 and on a Nexus 7 II running Android 4.3 using SDK 3.2.0.v20131112180422
Dupe of TIMOB-10806
DUP issue.