{ "id": "94126", "key": "TIMOB-9845", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14787", "description": "2012 Sprint 26 API", "name": "2012 Sprint 26 API", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-19T00:25:06.000+0000", "created": "2012-06-29T12:34:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "insight", "module_media", "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-28T19:17:29.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": "When showing a camera with a custom overlay it will not auto focus even if the hardware supports it.\r\nThis probably just requires us calling Camera.autoFocus() when we start preview.\r\n\r\nh3. Test case\r\n\r\nRun the Camera overlay example in KS. Try aiming at some text at closely and at far to see\r\nif the focus adjusts to make the text clear.\r\n", "attachment": [], "flagged": false, "summary": "Android: Camera with overlay does not auto focus", "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": "Platform OS: Android 2.3.3\r\n", "comment": { "comments": [ { "id": "230975", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\r\n{code}\r\nvar overlay = Ti.UI.createView();\r\nvar button = Titanium.UI.createButton({\r\n\tcolor : '#fff',\r\n\tbottom : 10,\r\n\twidth : 301,\r\n\theight : 57,\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontWeight : 'bold',\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttitle : 'Take Picture'\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n\tTi.Media.takePicture();\r\n});\r\n\r\noverlay.add(button);\r\n\r\nTitanium.Media.showCamera({\r\n\r\n\tsuccess : function(event) {\r\n\t\tTi.API.debug(\"********************************* Picture was taken\");\r\n\r\n\t},\r\n\tcancel : function() {\r\n\t},\r\n\terror : function(error) {\r\n\t\tTi.API.debug(\"********************************** Error in showing camera: \" + error.message);\r\n\t},\r\n\toverlay : overlay,\r\n\tmediaTypes : Ti.Media.MEDIA_TYPE_PHOTO,\r\n\tsaveToPhotoGallery : true\r\n}); \r\n{code}\r\nFor FR:\r\n1. Run the above test case on 2.2, 2.3, 3.x and 4.x devices.\r\n2. Try aiming at some text at closely and click the button \"Take Picture\". Should see the focus adjusts to make the text clear when the picture is captured.\r\n3. Run the test case on 4.x device. Try aiming at some text at closely and at far to see the focus continuously adjusts to make the text clear (*DON'T* click the button \"Take Picture\").", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T00:33:45.000+0000", "updated": "2012-12-12T00:41:51.000+0000" }, { "id": "230978", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3578", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T00:40:02.000+0000", "updated": "2012-12-12T00:40:02.000+0000" }, { "id": "311782", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nAppcelerator-Studio:3.3.0.201406271159\r\nSdk:3.3.0.v20140627202512\r\nacs:1.0.14\r\nalloy:1.4.0-rc3\r\nnpm:1.3.2\r\ntitanium:3.3.0-rc4\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nOS:Maverick(10.9.3)\r\nDevice:iPhone5c(v7.1.1),LG-P970(v4.0.4)\r\n\r\ncamera auto focus working fine.\r\nHence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T10:24:14.000+0000", "updated": "2014-07-01T10:24:14.000+0000" }, { "id": "384235", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "I realize this is an old ticket, but I am experiencing this issue with all of the Ti 5.x SDKs (currently using 5.2.0.GA). The camera is stuck focusing on a close distance and never focuses on anything in the distance. Taking the photo does not cause the camera to lock into proper focus and we get a blurry photo.\r\n\r\n(While we are an enterprise customer, I can't log into Jira with my enterprise account. So, I'm using my community/Titan account to post this comment.)", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2016-04-28T18:15:53.000+0000", "updated": "2016-04-28T18:15:53.000+0000" }, { "id": "384244", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "Sorry, I'm seeing this problem on iOS, not Android. I missed the platform in the title.", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2016-04-28T19:17:29.000+0000", "updated": "2016-04-28T19:17:29.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }