{ "id": "63006", "key": "TIMOB-2374", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-06T10:06:18.000+0000", "created": "2011-04-15T03:18:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature", "release-1.7.0", "tooling" ], "versions": [], "issuelinks": [ { "id": "10231", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64767", "key": "TIMOB-3698", "fields": { "summary": "Confirm TIMOB-2374", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-06T10:06:18.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}

Some modules may want to ship resources to be merged into\n/res we should take care of that during\ninstall/build.

{html}", "attachment": [ { "id": "18141", "filename": "tifranzi-android-01.zip", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:08.000+0000", "size": 137530, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Modules Should Support platform Folder", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128313", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We are moving this to 1.5.1. If you run into the issue with a\ncustom module or you publish a custom module. You will need to have\nthe user of the module merge any Android resources into their\nplatform/android/res/... folders and files as necessary for the\nmodule to perform.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:18:08.000+0000", "updated": "2011-04-15T03:18:08.000+0000" }, { "id": "128314", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [42d21873eda3eb8076b61c38ce69d4d5bb4de53b])\nCopy platform/ folder contents from app modules into build/android,\nfor any modules that are used in an app. [#2374]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/42d21873eda3...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:11.000+0000", "updated": "2011-04-15T03:18:11.000+0000" }, { "id": "128315", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [3a52eae800b9fdf07c6ae9031910464566dcf9d4])\nWhen building module, put platform/ folder (if any) in the zip, but\nnot in the jar (was doing the latter accidentally earlier).\n[#2374] \nhttps://github.com/appcelerator/titanium_mobile/commit/3a52eae800b9...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:11.000+0000", "updated": "2011-04-15T03:18:11.000+0000" }, { "id": "128316", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Also this commit:

\n

\nhttps://github.com/appcelerator/titanium_mobile/commit/c8bb9ef1ba38...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:12.000+0000", "updated": "2011-04-15T03:18:12.000+0000" }, { "id": "128317", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

For QE:

\n\n
\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#000',\n    exitOnClose: true,\n    fullscreen: false\n});\nwin.add(Ti.UI.createImageView({\n    image: Ti.App.Android.R.drawable.fj,\n    width:200, height:267\n}));\nwin.open();\n
\n\n

Explanation

\n

The zip file you installed is an Android Titanium module. When\nit gets expanded into the modules/ folder in your\nproject (which occurs automatically when the project is built),\nyou'll see it has a\nplatform/android/res/drawable/fj.png file in it. That\npng file is the photo you see when you run the app.

\n

So the photo file is not one of your project's\nResources/ files, but rather comes from the external,\ninstalled (\"third-party\", if you want) module. If the photo\nsuccessfully displays, it proves that the module's\nplatform/ folder and its sub-contents were\nsuccessfully merged into build/android when your app\nwas built, which is the purpose of this ticket.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:12.000+0000", "updated": "2011-04-15T03:18:12.000+0000" }, { "id": "128318", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

I don't know if it matters (I don't think it does) but\nLighthouse stripped dots out of the filename for that zip file\nattached here. the filename should be ti.franzi-android-0.1.zip.\nBut I'm pretty sure it doesn't matter what the filename is. Just\nplop it in your project's root folder.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:18:12.000+0000", "updated": "2011-04-15T03:18:12.000+0000" }, { "id": "133271", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on a Nexus One 2.3.4", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-06T10:06:18.000+0000", "updated": "2011-05-06T10:06:18.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }