{ "id": "114749", "key": "TIMOB-14423", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-02T18:14:58.000+0000", "created": "2013-05-22T06:26:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "29890", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "78125", "key": "TIMOB-4749", "fields": { "summary": "Android: Add support for Camera autohide property", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:01:23.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": "*Problem*\r\n\r\nPressing home button of an Android device on camera overlay(which is in portrait mode) and re opening the app gives an error message in an alert box.\r\n\r\n\r\n*Test Case*\r\n1. Open the camera from a portrait mode screen\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#FFF'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext : \"Tap to show camera\"\r\n});\r\nwin.add(label);\r\nwin.open();\r\n\r\nvar cameraOverlayView = Ti.UI.createView({\r\n\theight : '100%',\r\n\twidth : '100%'\r\n});\r\n\r\nwin.addEventListener('click', function() {\r\n\tvar params = {\r\n\t\tsuccess : function(e) {\r\n\t\t\tTi.API.info('SUCCESS');\r\n\t\t},\r\n\t\terror : function(e) {\r\n\t\t\talert('ERROR ' + JSON.stringify(e));\r\n\t\t},\r\n\t\tcancel : function(e) {\r\n\t\t\tTi.API.info('CANCEL ' + e);\r\n\t\t},\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\toverlay : cameraOverlayView\r\n\r\n\t};\r\n\tTi.Media.showCamera(params);\r\n});\r\n{code}\r\n\r\n2. Press Home button of Android device.\r\n\r\n3. Re open the app.\r\n\r\n4. The camera screen disappears and the following message is seen in an alert box:\r\n\r\n{code}{ \"message\": \"Unable to setup preview surface:null\" ,\"code\":-1,\"error\":\"Unable to setup preview surface:null\",\"success\":false}{code}\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Pressing home button of device on camera overlay in portrait mode and re-opening the app gives an error message", "creator": { "name": "mukundsamant89", "key": "mukundsamant89", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mukundsamant89", "key": "mukundsamant89", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "*Device:*\r\n iball Andi4.5q Jelly Bean 4.1.1\r\n\r\n*SDK version:*\r\n3.1.1.v20130520171545", "comment": { "comments": [ { "id": "254212", "author": { "name": "mukundsamant89", "key": "mukundsamant89", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi \n\nAny updates on this?Please let me know if more elaboration is required in the test case.", "updateAuthor": { "name": "mukundsamant89", "key": "mukundsamant89", "displayName": "Mukund Samant", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-28T12:01:40.000+0000", "updated": "2013-05-28T12:01:40.000+0000" }, { "id": "259918", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 2.3.6 with Ti SDK 3.1.1 GA.\n\nHowever, I don't get the \"Unable to setup preview surface\" error.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T22:19:57.000+0000", "updated": "2013-06-27T22:19:57.000+0000" }, { "id": "259983", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Pull request\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4425", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-28T12:06:52.000+0000", "updated": "2013-06-28T12:06:52.000+0000" }, { "id": "260623", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated test case. Should now see an alert with error in fail case.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-02T18:14:29.000+0000", "updated": "2013-07-02T18:14:29.000+0000" }, { "id": "265627", "author": { "name": "legolas8911", "key": "legolas8911", "displayName": "Blaga Mihai", "active": true, "timeZone": "Europe/Helsinki" }, "body": "The problem still exists on 3.1.1.GA, 3.1.2.v20130730133101, 3.1.2.v20130807111603 but it's fixed on 3.2.0.v20130807110843.\r\n\r\nThe problem appears when locking the screen also. \r\n\r\nCan't the fix be included in the final 3.1.2?", "updateAuthor": { "name": "legolas8911", "key": "legolas8911", "displayName": "Blaga Mihai", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-08-08T20:22:11.000+0000", "updated": "2013-08-08T20:22:11.000+0000" }, { "id": "413020", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:01:23.000+0000", "updated": "2017-03-16T21:01:23.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }