{ "id": "113460", "key": "TIMOB-13694", "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": "15117", "description": "2013 Sprint 12 BB", "name": "2013 Sprint 12 BB", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-05T19:28:17.000+0000", "created": "2013-04-26T23:10:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "blackberry", "module_c", "module_media", "qe-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-11T18:15:54.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h3. Test Case\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({layout: 'vertical'});\r\n\r\nvar button = Ti.UI.createButton({title: 'take picture'});\r\nbutton.addEventListener('click', function() {\r\n\tTi.Media.showCamera({\r\n\t\t'cancel': function() {\r\n\t\t\tTi.API.info('cancel');\r\n\t\t},\r\n\t\t'error': function() {\r\n\t\t\tTi.API.info('error');\r\n\t\t},\r\n\t\t'success': function(e) {\r\n\t\t\tTi.API.info('success: size=' + e.media.length);\r\n imageView.image = e.media;\r\n\t\t}\r\n\t});\r\n});\r\nwin.add(button);\r\n\r\nvar imageView = Ti.UI.createImageView();\r\nwin.add(imageView);\r\n\r\nsetTimeout(function() {\r\n\tTi.Media.hideCamera();\r\n}, 3000);\r\n\r\nwin.open();\r\n{code}\r\n\r\nExpected: Run the application and click \"take picture\". After you take a picture you should return back to the application and the image should be displayed in the image view. Try clicking \"take picture\" again, but this time cancel by hitting the back arrow. You shouldn't see any new image and \"cancel\" should be logged.", "attachment": [], "flagged": false, "summary": "BlackBerry: Implement Camera", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "252683", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We can probably use the camera card to implement this feature. We cannot support overlay views using this method, but in the\nfuture we could use the lower level camera API to provide this functionality. This is simliar to how we implemented camera\non the Android platform.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-17T23:11:06.000+0000", "updated": "2013-05-17T23:11:06.000+0000" }, { "id": "257308", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request [#99|https://github.com/appcelerator/titanium_mobile_blackberry/pull/99] for master.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T23:33:30.000+0000", "updated": "2013-06-11T23:33:30.000+0000" }, { "id": "257991", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged into master.\r\n\r\nNote, this needs to be added to tiapp.xml\r\n{code}\r\n\r\n\t\r\n\t\taccess_shared\r\n\t\r\n\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-14T21:16:39.000+0000", "updated": "2013-06-14T21:16:39.000+0000" }, { "id": "276750", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with :\r\n\r\nAppcelerator Studio: 3.2.0.201310230601\r\nSDK:3.2.0.v20131024120843\r\nalloy: 1.2.2\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.0.3\r\nDevice:Blackberry Z10(v 10.0)\r\nOS: OSX 10.9\r\n\r\n\r\nGetting captured image in imageView after camera success callback.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T08:24:43.000+0000", "updated": "2013-10-25T08:24:43.000+0000" }, { "id": "306297", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and cannot get captured image in imageView after success callback.\r\n\r\nEnvironment:\r\nAppcelerator Studio, build: 3.3.0.201405161313 \r\nTitanium SDK, build: 3.3.0.v20140522144936 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-alpha2 \r\nnpm@1.3.2 \r\ntitanium@3.3.0-alpha5 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-23T18:52:26.000+0000", "updated": "2014-05-23T18:52:26.000+0000" }, { "id": "307706", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/261\r\nPermissions needed are:\r\n{code}\r\n\r\n\t\r\n\t\taccess_shared\r\n\t\tuse_camera\r\n\t\r\n\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T19:26:42.000+0000", "updated": "2014-06-05T19:26:42.000+0000" }, { "id": "308502", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201406061445\r\nTitanium SDK, build: 3.3.0.v20140611084912 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta2 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n\r\nAfter permission was added, I could see the image in the ImageView after success callback.\r\nAlthough the image taken appears rotated, the image is correct in the photo gallery.\r\n\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-11T18:15:36.000+0000", "updated": "2014-06-11T18:15:36.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }