{ "id": "78125", "key": "TIMOB-4749", "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": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "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": "2014-05-28T16:08:19.000+0000", "created": "2011-07-22T11:04:02.000+0000", "epic": { "id": 105183, "key": "TIMOB-11818", "name": "Android: Camera Bugs", "summary": "Android: Address deficiencies in the Camera implementation", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "camera", "media", "module_media", "parity", "qe-testadded", "tbs-1.9.0" ], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "29487", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "115791", "key": "TIMOB-14180", "fields": { "summary": "Android: Add Ti.Media.hideCamera() function", "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 } } } }, { "id": "29890", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "114749", "key": "TIMOB-14423", "fields": { "summary": "Android: Pressing home button of device on camera overlay in portrait mode and re-opening the app gives an error message", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-05-28T16:08: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": null, "attachment": [ { "id": "40624", "filename": "app.js", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-09T22:34:55.000+0000", "size": 2722, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Add support for Camera autohide property", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "213075", "author": { "name": "rogmabi", "key": "rogmabi", "displayName": "Roger Mabillard", "active": true, "timeZone": "America/Montreal" }, "body": "Is there any reason why this feature is taking so long? I am building an app that uses a custom overlay but there is no way right now to keep the camera open after takePicture. We are creating picture series to upload them all in the same collection. Any advice? Thanks", "updateAuthor": { "name": "rogmabi", "key": "rogmabi", "displayName": "Roger Mabillard", "active": true, "timeZone": "America/Montreal" }, "created": "2012-08-07T00:47:07.000+0000", "updated": "2012-10-10T22:52:11.000+0000" }, { "id": "241744", "author": { "name": "kachel", "key": "kachel", "displayName": "Steve Richmann", "active": true, "timeZone": "Europe/Berlin" }, "body": "We need this functionality too, we are building an app which sends images continously to a remote server and automatically closing the cameraview is a real showkiller for us on android.", "updateAuthor": { "name": "kachel", "key": "kachel", "displayName": "Steve Richmann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-12T13:12:49.000+0000", "updated": "2013-03-12T13:12:49.000+0000" }, { "id": "261178", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test app.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-09T22:34:55.000+0000", "updated": "2013-07-09T22:34:55.000+0000" }, { "id": "261180", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Testing Notes\r\n\r\n* Note that docs were changed too, so don't forget to test.\r\n\r\n* Use attached app.js file. The UI contains a switch to toggle the autohide property. As you take photos, they'll appear (stretched and ugly, but still proving that you're getting the data) in a scrollview one after the other. If you turn off autohide, you can take a bunch of pictures and they'll line up. \r\n\r\n* When you click the Close button while using the camera with autohide off, that calls the new Ti.Media.hideCamera. So if the camera preview goes away, then you've successfully tested that too. That's the test for TIMOB-14180.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-09T22:37:41.000+0000", "updated": "2013-07-09T22:38:14.000+0000" }, { "id": "261186", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/4446", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-07-09T23:15:14.000+0000", "updated": "2013-07-09T23:15:14.000+0000" }, { "id": "263799", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "An extended test case:\n{code}\n/* jshint undef: true, unused: true */\n/* global Ti: false, console: false */\n\nTi.UI.backgroundColor = \"#fff\";\nvar win = Ti.UI.createWindow({ \n title:'Test',\n backgroundColor:'#fff',\n exitOnClose: true,\n orientationModes: [Ti.UI.PORTRAIT]\n }),\n log = function(s) {\n console.log(s);\n },\n btn = Ti.UI.createButton({\n title: \"Show camera\",\n top: \"16dp\",\n left: \"16dp\"\n }),\n hideSwitch = Ti.UI.createSwitch({\n titleOn: \"autohide=true\",\n titleOff: \"autohide=false\",\n value: true,\n width: Ti.UI.SIZE,\n height: Ti.UI.SIZE,\n right: \"16dp\",\n top: \"16dp\"\n }),\n overlaySwitch = Ti.UI.createSwitch({\n titleOn: \"with overlay\",\n titleOff: \"without overlay\",\n value: true,\n width: Ti.UI.SIZE,\n height: Ti.UI.SIZE,\n left: \"35%\",\n top: \"16dp\"\n }),\n overlayView = Ti.UI.createView({\n width: Ti.UI.FILL,\n height: Ti.UI.FILL\n }),\n overlayButtonClick = Ti.UI.createButton({\n width: Ti.UI.SIZE,\n height: \"48dp\",\n bottom: \"8dp\",\n left: \"16dp\",\n title: \"Take Photo\"\n }),\n overlayButtonClose = Ti.UI.createButton({\n width: Ti.UI.SIZE,\n height: \"48dp\",\n bottom: \"8dp\",\n right: \"16dp\",\n title: \"Close\"\n }),\n options = {\n cancel: function() {\n log(\"Cancelled\");\n },\n error: function(e){\n log(\"Error - \" + e.error);\n },\n success: function(e) {\n log(\"Media type: \" + e.mediaType);\n log(\"Media size: \" + e.media.length);\n makeImageView(e.media);\n },\n autohide: hideSwitch.value,\n saveToPhotoGallery: false,\n showControls: false\n },\n sv = Ti.UI.createScrollView({\n contentWidth: 'auto',\n contentHeight: 'auto',\n width: Ti.UI.FILL,\n height: Ti.UI.FILL,\n layout: 'vertical',\n top: \"80dp\",\n scrollType: 'vertical',\n backgroundColor: 'black'\n });\n\noverlayView.add(overlayButtonClick);\noverlayView.add(overlayButtonClose);\n\noverlayButtonClick.addEventListener(\"click\", function() {\n\tTi.Media.takePicture();\n});\n\noverlayButtonClose.addEventListener(\"click\", function() {\n\tTi.Media.hideCamera();\n});\n\nbtn.addEventListener(\"click\", function() {\n options.autohide = hideSwitch.value;\n if (!overlaySwitch.value) {\n if (options.overlay) {\n delete options.overlay;\n }\n } else {\n options.overlay = overlayView;\n }\n Ti.API.info(\"options: \" + JSON.stringify(options));\n\tTi.Media.showCamera(options);\n});\n\nfunction makeImageView(blob) {\n sv.add(Ti.UI.createImageView({\n image: blob.imageAsThumbnail(Ti.Platform.displayCaps.platformWidth, 1, 20),\n height: (3 * 48) + \"dp\",\n width: (Ti.Platform.displayCaps.platformWidth - 48) + \"px\",\n top: \"8dp\"\n }));\n}\n\nwin.add(btn);\nwin.add(hideSwitch);\nwin.add(overlaySwitch);\nwin.add(sv);\n\nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-29T22:53:19.000+0000", "updated": "2013-07-29T22:53:19.000+0000" }, { "id": "275356", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified working as expected. \n\nTiSDK 3.2.0.v20131016114850\nCLI 3.2.0\nTitanium Studio 3.2.0.201310152326\n\nClosing.\n", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-16T22:45:06.000+0000", "updated": "2013-10-16T22:45:06.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }