{ "id": "159419", "key": "TIMOB-23178", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-04-08T13:39:54.000+0000", "priority": null, "labels": [ "inconsistency", "liveview", "path", "relative" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:45.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Paths to *images* and *dbs* are always absolute on iOS, on Android behaviour depends on Liveview, when distributing the app paths are relative to script file.\r\n\r\nAttached screenshot and a test app.\r\n\r\napp.js\r\n{code:java}\r\nrequire('folder/script');\r\n{code}\r\n\r\nfolder/script\r\n{code:java}\r\nvar win = Ti.UI.createWindow({layout:'vertical'});\r\nwin.add(Ti.UI.createLabel({\r\n\ttop:16,\r\n\ttext:'/image.png'\r\n}));\r\nwin.add(Ti.UI.createImageView({\r\n image:'/image.png'\r\n}));\r\nwin.add(Ti.UI.createLabel({\r\n\ttext:'image.png'\r\n}));\r\nwin.add(Ti.UI.createImageView({\r\n image:'image.png'\r\n}));\r\nwin.open();\r\n{code}\r\n", "attachment": [ { "id": "58873", "filename": "Android.png", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-08T13:38:05.000+0000", "size": 48095, "mimeType": "image/png" }, { "id": "58870", "filename": "Android liveview.png", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-08T13:39:39.000+0000", "size": 48835, "mimeType": "image/png" }, { "id": "58874", "filename": "iOS.png", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-08T13:38:06.000+0000", "size": 162938, "mimeType": "image/png" }, { "id": "58871", "filename": "iOS liveview.png", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-08T13:39:39.000+0000", "size": 163322, "mimeType": "image/png" }, { "id": "58872", "filename": "Pathtest.rar", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-08T13:38:58.000+0000", "size": 80851, "mimeType": "application/x-rar" } ], "flagged": false, "summary": "Inconsistent path handling Android / iOS - Live View On / Off", "creator": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Window 7 x64 / OSX 10.11 - Titanium SDK 5.2.2", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }