{ "id": "77726", "key": "TIMOB-4643", "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": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T10:30:57.000+0000", "created": "2011-07-12T13:30:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "platform_android", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:19.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": "Including a custom theme.xml and applying it one of the activities results in a crash of the application. Works fine with Ti SDK 1.7 versions..\r\n\r\nStep: Copy the below code in app.js\r\n{code:title='app.js'}\r\nvar win = Titanium.UI.createWindow({ backgroundColor: '#fff', fullscreen: true });\r\nwin.add(Ti.UI.createLabel({ text: 'Press your hardware menu button!' }));\r\nwin.open();\r\n\r\n// keep a pointer to the current activity\r\nvar currentActivity = win.activity;\r\n\r\n// and make an options menu\r\ncurrentActivity.onCreateOptionsMenu = function(e) {\r\n e.menu.add({ title: 'Open Dialog' }).addEventListener(\"click\", function() {\r\n var intent = Ti.Android.createIntent({\r\n url: 'temp.js'\r\n });\r\n intent.putExtra('modal', true);\r\n currentActivity.startActivity(intent);\r\n });\r\n};\r\n{code}\r\nStep2: Copy the below code to temp.js.\r\n{code:title='temp.js'}\r\nvar win = Ti.UI.currentWindow;\r\nwin.modal = true;\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Hello, world!'\r\n}));\r\n{code}\r\nStep3: Create a file 'theme.xml' in root->platform->android->res->values folder. Copy the below code into it.\r\n{code:title='theme.xml'}\r\n\r\n\r\n \r\n \r\n\r\n{code}\r\nStep4: Run the app with Ti SDK set to 1.8.0. Application crashes.", "attachment": [ { "id": "21805", "filename": "console.txt", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-12T13:59:55.000+0000", "size": 15993, "mimeType": "text/plain" } ], "flagged": false, "summary": "Application crashes if a custom theme is included in the project", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 1.8.0 and Android 2.2", "comment": { "comments": [ { "id": "159304", "author": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Don, there is a sample project attached to this ticket. Let me know if any additional info is needed.\r\n\r\nhttp://support.appcelerator.com/tickets/APP-119465/homepage", "updateAuthor": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-12T13:55:38.000+0000", "updated": "2011-07-12T13:55:47.000+0000" }, { "id": "159305", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Crash log attached.", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-12T13:59:55.000+0000", "updated": "2011-07-12T13:59:55.000+0000" }, { "id": "159390", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Don, the crash log is attached. Please let me know if you need anything else.", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-13T10:48:26.000+0000", "updated": "2011-07-13T10:48:26.000+0000" }, { "id": "174887", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with both v8 and rhino on Nexus S (2.3.6), Droid 1 (2.2.2), and Galaxy tab 10.1 (3.1) running 1.8.0.1.v20111205011857.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-05T12:47:43.000+0000", "updated": "2011-12-05T12:47:43.000+0000" }, { "id": "178153", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to edit labels.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T10:29:46.000+0000", "updated": "2012-01-05T10:29:46.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }