{ "id": "141359", "key": "TIMOB-18170", "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": null, "resolutiondate": null, "created": "2014-12-10T00:07:55.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:57.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6. This is not a regression. Seen in 3.4.1 SDK too.\r\n\r\nh5.Description:\r\n1. Replace the app.js the following code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar openCameraButton = Ti.UI.createButton({\r\n title: 'Open Camera With Overlay',\r\n top:'30%'\r\n});\r\n\r\nopenCameraButton.addEventListener('click', function(e) {\r\n var cameraOverlay = Ti.UI.createView();\r\n\r\n var takePhotoButton = Ti.UI.createButton({\r\n bottom: 65,\r\n title: 'Take Photo',\r\n });\r\n\r\n var closeCameraButton = Ti.UI.createButton({\r\n bottom: 65,\r\n height:40,\r\n right: 10,\r\n title: 'Close Camera',\r\n top: 10,\r\n });\r\n\r\n takePhotoButton.addEventListener('click', function(e) {\r\n Ti.Media.takePicture();\r\n });\r\n\r\n closeCameraButton.addEventListener('click', function(e) {\r\n alert('closing camera');\r\n Ti.Media.hideCamera();\r\n });\r\n\r\n cameraOverlay.add(takePhotoButton);\r\n cameraOverlay.add(closeCameraButton);\r\n\tshowcamera(cameraOverlay);\r\n});\r\n\r\nvar opencamera1 = Ti.UI.createButton({\r\n\ttitle: 'Open Camera With No Overlay',\r\n\ttop:'60%'\r\n});\r\n\r\nopencamera1.addEventListener('click',function(e){\r\n\tshowcamera();\r\n});\r\n\r\nvar showcamera = function(overlayname){\r\n\tTi.Media.showCamera({\r\n success: function(e) {\r\n alert('success callback');\r\n },\r\n cancel: function() {\r\n Ti.API.info('cancel callback');\r\n },\r\n error: function(e) {\r\n Ti.API.info('error callback');\r\n },\r\n allowEditing: false,\r\n animated: false,\r\n autohide: false,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],\r\n overlay: overlayname,\r\n saveToPhotoGallery: true,\r\n showControls: false\r\n });\r\n};\r\n\r\nwin.add(openCameraButton);\r\nwin.add(opencamera1);\r\nwin.open();\r\n{code}\r\n2. Build & run the app on Nexus 9 running android 5.0.1 , a nexus 10 running 4.2 , a nexus 5 running android 5.0. & a Samsung Galaxy S4 running android 4.4.2.\r\n3. Click on the button \"Open Camera With Overlay\".\r\n4. Click on the button \"Open camera With No Overlay\".\r\n\r\nh5.Actual Result:\r\n1. When the camera view opens with overlay notice the resolution is low. This is most prominent on Nexus 9 running 5.0.1, less prominent on Nexus 10 running android 4.2 , no issue seen on nexus 5 & Samsung galaxy S4 running android 5.0 & android 4.4.2 respectively.\r\n\r\n2. When the default camera view with no overlay opens no issue is seen on any devices.\r\n\r\nPlease refer the attached screenshots for reference.\r\nh6. Note:\r\nWhen a pic is taken with custom overlay the pics appear with proper resolution in the gallery.\r\n\r\nh5.Expected Result:\r\n1. The camera view resolution while using overlay should be the same as when not using overlay.", "attachment": [ { "id": "53144", "filename": "camera_with_custom_overlay.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T00:25:29.000+0000", "size": 1182776, "mimeType": "image/png" }, { "id": "53143", "filename": "default_camera_no_overlay.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T00:25:29.000+0000", "size": 4010943, "mimeType": "image/png" } ], "flagged": false, "summary": "Android : Camera view resolution is low when camera overlay is used for tablets", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.5.0.v20141208122514 \r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10\r\nNexus 9 - Android 5.0.1\r\nNexus 10 - Android 4.2", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }