{ "id": "91572", "key": "TIMOB-9052", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-07T17:14:35.000+0000", "created": "2012-05-08T09:21:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_android", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-25T11:25:41.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": "h2. Problem description\r\nApp crashes when accessing to contacts in Address Book on Android OS 4.0\r\n\r\nh2. Steps to reproduce\r\n- Run the sample code below\r\n- Click the button and get to the Address Book contact list.\r\n- Click on a contact, then get back to the app\r\nResult: app crashes.\r\n\r\nCrash not reproducible on Android OS 2.3.3\r\nAttaching crash log.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar info = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n// Create a Button.\r\nvar btn1 = Ti.UI.createButton({\r\n title : 'btn1',\r\n height : 50,\r\n width : 300,\r\n bottom : 50\r\n});\r\nvar values = {\r\n cancel:function() {info.text = 'Cancelled';},\r\n selectedPerson : function() {info.text = \"select\";}};\r\n// Listen for click events.\r\nbtn1.addEventListener('click', function() {\r\n Titanium.Contacts.showContacts(values);\r\n});\r\n// Add to the parent view.\r\nwin1.add(btn1);\r\nwin1.add(info);\r\nwin1.open();\r\n{code} \r\n\r\n\r\nh2. Additional notes\r\nCustomer ticket: http://support-admin.appcelerator.com/display/APP-461234", "attachment": [ { "id": "27581", "filename": "APP-461234log.txt", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-08T09:21:03.000+0000", "size": 7530, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: app crashes accessig to AddressBook on Android OS 4", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android OS 4.0 (tested on Google Nexus Galaxy)\r\nTiSDK tested 2.0.1GA2", "comment": { "comments": [ { "id": "197138", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Putting it back in queue", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-04T14:45:44.000+0000", "updated": "2012-06-04T14:45:44.000+0000" }, { "id": "197555", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This appears to be caused by closing a Cursor from a managed query. On ICS this results in a fatal exception when the activity which created the managed query resumes.\r\n\r\nWorked with Hieu on a solution that seems to fix the issue. He will be sending a PR for the fix and wrapping up this issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T12:49:41.000+0000", "updated": "2012-06-06T12:49:41.000+0000" }, { "id": "199901", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified with:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevices: Nexus S (4.0.4); Samsung Galaxy tab (3.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:42:44.000+0000", "updated": "2012-06-23T11:42:44.000+0000" }, { "id": "294569", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nPR Link: \nhttps://github.com/appcelerator/titanium_mobile/pull/5380", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-25T11:25:41.000+0000", "updated": "2014-02-25T11:25:41.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }