Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2535] images from res-xxx folders not displayed on Android with SDK 3.2

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-13T23:08:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsandroid
ReporterSébastien DELCROIX
AssigneeMauro Parra-Miranda
Created2013-11-07T17:57:12.000+0000
Updated2016-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

Comments

  1. Jick Steen 2013-11-13

    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
  2. Chris Barber 2013-11-13

    Dupe of TIMOB-10806
  3. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source