Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13060] Android: ImageView: Sometimes images can not show because getInputStream() fails

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-14T19:01:26.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06
ComponentsAndroid
Labelsapi, qe-testadded
ReporterPing Wang
AssigneePing Wang
Created2013-03-14T05:51:54.000+0000
Updated2014-06-19T12:42:48.000+0000

Description

var listView = Ti.UI.createListView();

for (i=0; i<10; i++) {
	var section = Ti.UI.createListSection({ headerTitle: 'Section '+i });
	section.setItems([
		{ properties: { title: 'Title '+i }, template: Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT},
		{ properties: { title: 'Title '+(i+1), image: 'KS_nav_views.png' }, template: Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT },
		{ properties: { title: 'Title '+(i+2), image: 'KS_nav_ui.png' }, template: Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT},
		{ properties: { title: 'Title '+(i+3), image: 'http://www.catravelservices.com/management/hotels/pictures/Mawamba_lodge_nature.jpg'}, template: Ti.UI.LIST_ITEM_TEMPLATE_DEFAULT }
	]);
	listView.appendSection(section);
}

var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});
win.add(listView);
win.open();
Steps to reproduce: 1. Run the above code on Galaxy Nexux 4.0.4 2. When the window opens, the image "KS_nav_ui.png" in the Row 2 is missing sometimes.

Comments

  1. Ping Wang 2013-03-14

    PR: https://github.com/appcelerator/titanium_mobile/pull/3965
  2. Shyam Bhadauria 2013-03-15

    Image in row 2 is displayed everytime now. Environment used for verification - Titanium SDK: 3.1.0.v20130314163255 Titanium  Studio:3.0.2.201302151605 Device: Samsung GALAXY Note (2.3.6) and Nexus 7 Android 4.1
  3. Paras Mishra 2013-04-19

    added testcase in Test suite under Imageview.

JSON Source