{ "id": "110851", "key": "TIMOB-13001", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-16T23:25:12.000+0000", "created": "2013-03-08T13:23:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.1.1", "supportTeam" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:05.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" } ], "attachment": [], "flagged": false, "summary": "Android: Camera overlay does not support portrait mode and default view is in Landscape only.", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device : Samsung Galaxy S3 (4.0.4)", "comment": { "comments": [ { "id": "246759", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor : '#eee'\n});\n\nvar scanner = Titanium.UI.createView({\n width:200,\n height:200,\n borderColor:'red',\n borderWidth:5,\n borderRadius:15,\n});\n\nvar button = Titanium.UI.createButton({\n title:'take foto'\n});\n\nvar overlay = Titanium.UI.createView();\noverlay.add(scanner);\noverlay.add(button);\n \n \nbutton.addEventListener('click',function()\n{\n scanner.borderColor = 'blue';\n Ti.Media.takePicture();\n setTimeout(function()\n {\n scanner.borderColor = 'red';\n },500);\n});\n\nvar showCameraButton = Ti.UI.createButton({\n title : 'Open Camera', width : 200, height : 70, bottom : 5\n});\nshowCameraButton.addEventListener('click', function() {\n Ti.Media.showCamera({\n success : function(e) {},\n overlay: overlay,\n mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]\n });\n});\n \nwin.add(showCameraButton);\nwin.open();\n{code}\nFor FR:\n1. Run the above test case on different devices (phones and tablets).\n2. Orientate the device in portrait / landscape mode and then click the button to open the camera. The camera preview and overlay should show in the correct orientation.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T22:37:17.000+0000", "updated": "2013-04-09T22:37:17.000+0000" }, { "id": "246760", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4135", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T22:38:55.000+0000", "updated": "2013-04-09T22:38:55.000+0000" }, { "id": "248973", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4200", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-24T22:31:59.000+0000", "updated": "2013-04-24T22:31:59.000+0000" }, { "id": "250286", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "works fine on Samsung Galaxy Note, Android version: 2.3.6\nbut on S3, Android version: 4.1.1 portrait mode is selected by default and orientation doesn't change to landscape mode.\n\nTested on:\nDevice: Samsung Galaxy Note, Android version: 2.3.6\nDevice: Samsung S3, Android version: 4.1.1\nSDK: 3.1.1.v20130503173050\nCLI version : 3.1.0\nOS : MAC OSX 10.7.5\nAppcelerator Studio, build: 3.1.0.201305020752\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-06T09:40:32.000+0000", "updated": "2013-05-06T09:40:32.000+0000" }, { "id": "250345", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-06T18:00:34.000+0000", "updated": "2013-05-06T18:00:34.000+0000" }, { "id": "254369", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified functioning as expected with:\nMac OS 10.8.3\nSafari: 6.0.4\nXcode 4.6.2\nCLI: 3.1.1-alpha\nAlloy: 1.1.3-alpha\nAppcelerator Studio, build: 3.1.1.201305271814\nTitanium SDK version 3.1.1.v20130524180421\n\nOn:\nNexus 4 4.2.1\nNexus 10 4.2\nGalaxy S II 2.3.6", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-28T20:19:45.000+0000", "updated": "2013-05-28T20:19:45.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }