{ "id": "129905", "key": "TIMOB-16981", "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": "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-28T02:19:58.000+0000", "created": "2014-05-02T17:16:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38700", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "129131", "key": "TIMOB-16854", "fields": { "summary": "Android: Camera with overlay crashes on pressing menu button", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-01T17:06:40.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": "Since [Workaround for issue # 61394|https://github.com/appcelerator/titanium_mobile/commit/0fd8a0e78bd0aac8f1fcb78a9d1a7e08622fb977#commitcomment-6195276] _(I couldn't find issue 61394)_\r\n\r\nPicture looks 100% focused and my call to Ti.Media.takePicture(); failed silently.\r\n\r\nTook me more than 30 minutes to understand the some how I received the \"Unable to focus\" message.\r\n\r\nI think there are 2 options of solving this.\r\n1. Always take picture even if focus didn't succeed and just log on focus failure\r\n2. Add a property that sais \"Throw on focus failure\" so it will throw an error that we can catch on the JavaScript and show the user.", "attachment": [], "flagged": false, "summary": "Android: Recent change to take picture only on valid focus is causing usability issues", "creator": { "name": "danpe", "key": "danpe", "displayName": "Dan Peleg", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "danpe", "key": "danpe", "displayName": "Dan Peleg", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Nexus 5, Android Kit Kat 4.4.2. ART enabled.", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "305450", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There was a recent change in Titanium SDK 3.3.0 to work around Google bug 61394 (http://code.google.com/p/android/issues/detail?id=61394). It changes the current SDK behavior as a picture is only taken when auto focus is successful. No picture is taken when auto focus is not successful but there is no notification to the user. We need a better way to communicate this behavior to developers so that they can update their applications accordingly.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/commit/0fd8a0e78bd0aac8f1fcb78a9d1a7e08622fb977#commitcomment-6195276\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-19T05:54:48.000+0000", "updated": "2014-05-19T05:54:48.000+0000" }, { "id": "310300", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this on Nexus 5 (4.4) using the test case in TIMOB-1510. I'm able to take pictures without any problems.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T22:55:54.000+0000", "updated": "2014-06-20T22:55:54.000+0000" }, { "id": "310338", "author": { "name": "danpe", "key": "danpe", "displayName": "Dan Peleg", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Hey Hieu, \r\n\r\nThat only happens when auto focus fails.\r\nTry different lighting conditions or distance.\r\n\r\nLet me know if you are able to reproduce.\r\n\r\nDan", "updateAuthor": { "name": "danpe", "key": "danpe", "displayName": "Dan Peleg", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-06-21T18:19:09.000+0000", "updated": "2014-06-21T18:19:09.000+0000" }, { "id": "310526", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue is reproducible.\r\n\r\nIf the camera does not focus & we take a picture then we get the following logs in the studio console {code}[DEBUG] : TiCameraActivity: (main) [4560,19923] Unable to focus. Ignoring call to take picture.{code}. with no visual indication/error of the problem. There is no way to find out without looking at the debug logs why the picture was not taken.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406171619\r\nTi SDK : 3.3.0.v20140620194913\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc2\r\nCLI - 3.3.0-rc2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-23T21:16:43.000+0000", "updated": "2014-06-23T21:17:52.000+0000" }, { "id": "311333", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Probably be useful to add a simple toast message.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T18:31:08.000+0000", "updated": "2014-06-27T18:31:08.000+0000" }, { "id": "311367", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Toast added: https://github.com/appcelerator/titanium_mobile/pull/5865", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T19:59:09.000+0000", "updated": "2014-06-27T19:59:09.000+0000" }, { "id": "311404", "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": "2014-06-27T21:13:53.000+0000", "updated": "2014-06-27T21:34:56.000+0000" }, { "id": "311414", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/5871", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T21:39:21.000+0000", "updated": "2014-06-27T21:39:21.000+0000" }, { "id": "311823", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. \r\nThe pic is taken even if the camera is unable to focus successfully & we get in the logs \"Unable to focus\".\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406271159\r\nTi SDK : 3.3.0.v20140627202512\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc2\r\nCLI - 3.3.0-rc4\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T17:06:40.000+0000", "updated": "2014-07-01T17:06:40.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }