{ "id": "86285", "key": "AC-2956", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-15T13:39:07.000+0000", "created": "2012-02-09T13:45:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:47:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "var self = Ti.UI.createView({\r\n\t\tbackgroundColor:'white'\r\n\t});\r\nvar logo = Ti.UI.createImageView({\r\n\t\timage:'images/logo.png',\r\n\t\ttop:'5dp',\r\n\t\theight:'100dp',\r\n width:'100dp',\r\n\t\thires:true\r\n\t});\r\nself.add(logo);\r\n\r\nWorks fine in iOS. Android returns http://pastie.org/3350840\r\nNever had an issue with this before until I started using the common.js pattern. I searched the current issues already but most seem to be related to windows build environments.", "attachment": [], "flagged": false, "summary": "Android imageView not displaying local images", "creator": { "name": "nelson419", "key": "nelson419", "displayName": "Chris Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nelson419", "key": "nelson419", "displayName": "Chris Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 1.8.1\r\nOSX 10.7.2\r\nAndroid 2.2 Emulator\r\nGalaxy Nexus Device", "comment": { "comments": [ { "id": "183224", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\n\r\nyou can solve this adding an slash:\r\n\r\nif (Titanium.Platform.name == 'android') {\r\n win.backgroundImage = '/images/home.jpg';\r\n}\r\n\r\nBest,\r\n\r\nMauro", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-15T11:33:29.000+0000", "updated": "2012-02-15T11:33:29.000+0000" }, { "id": "183228", "author": { "name": "nelson419", "key": "nelson419", "displayName": "Chris Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That seemed to do the trick. Sorry for the silly question.", "updateAuthor": { "name": "nelson419", "key": "nelson419", "displayName": "Chris Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-15T11:59:43.000+0000", "updated": "2012-02-15T11:59:43.000+0000" }, { "id": "283396", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as per updates from Chris.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T02:52:56.000+0000", "updated": "2013-12-10T02:52:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }