{ "id": "63391", "key": "TIMOB-2759", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "11237", "name": "Release 1.6.0 M04", "archived": true, "released": true, "releaseDate": "2011-01-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:00.000+0000", "created": "2011-04-15T03:28:49.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "release-1.6.0", "reported-1.5.1", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T02:00:00.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

cf helpdesk http://developer.appcelerator.com/helpdesk/view/60941
\ncf related #2627

\n

To reproduce:

\n

app.js

\n
\nTitanium.UI.setBackgroundColor('#000');\nTitanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#fff',\n    fullscreen: true,\n    exitOnClose: true,\n    url: 'win.js'\n}).open();\n
\n

Then make this win.js:

\n
\nvar win = Ti.UI.currentWindow;\nTi.Android.currentActivity.onCreateOptionsMenu = function(e) {\n    var m1 = e.menu.add({\n        itemId : 1,\n        groupId : 0,\n        order : 0,\n        title: 'I am a menu item'\n    });\n    m1.setIcon(\"app://images/test.png\");\n};\n
\n

Then ...

\n\n

Run the app. When the blank window comes up, press the\nemulator/phone menu button. You should see a menu item\nwith an icon on it, but you will only see text on the menu\nitem.

{html}", "attachment": [], "flagged": false, "summary": "Android: menu icons with \"app://\" paths do not fetch resource images", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "129350", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [8b2fd0e423d2fb5b7df3c72e88c92d3363d5a5cc])\n[#2759 state:fixed-in-qa] Make sure app:// path\nresource drawables can be loaded by loadDrawable if url has not\nalready been resolved \nhttps://github.com/appcelerator/titanium_mobile/commit/8b2fd0e423d2...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:28:50.000+0000", "updated": "2011-04-15T03:28:50.000+0000" }, { "id": "129351", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Bill - using Titanium SDK version: 1.6.0 (01/10/11 08:25\n3452f06), I am failing with
\nI/TiFileHlpr( 336): (main) [7216,11921] app://images/test.png not\nfound. emulator and device.
\nI confirmed I have the image at\nResources/android/images/medium/KS_nav_ui.png and that I have any\ndensity set to true in tiapp.xml. Am I missing another step?

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:51.000+0000", "updated": "2011-04-15T03:28:51.000+0000" }, { "id": "129352", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Thomas \"app://images/test.png\" !=\n\"Resources/android/images/medium/KS_nav_ui.png\" it would match

\n

\"app://images/test.png\" == \"\nResources/android/images/medium/test.png\"

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:51.000+0000", "updated": "2011-04-15T03:28:51.000+0000" }, { "id": "129353", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

yup, should have noticed that. G2 (2.2) G1 (1.6) sim 2.1.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:28:51.000+0000", "updated": "2011-04-15T03:28:51.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }