{ "id": "124740", "key": "TIMOB-16182", "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-01-13T20:09:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2020-02-17T00:11:13.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": "On Android using \r\n\r\n{code}\r\nTi.Media.showCamera(\r\n{\r\nshowControls: false,\r\nautohide: true,\r\noverlay: Ti.UI.createView({width:100, height:100, backgroundColor:\"blue\"}),\r\nsuccess: function(blob) { console.log(\"camera:success\") },\r\nerror : function(e) { console.log(\"camera:error\") },\r\ncancel : function(e) { console.log(\"camera:cancel\") }\r\n});\r\n{code}\r\n\r\nPressing the Android back button will not fire the \"cancel\" callback;\r\n\r\nHowever, when no overlay is specified, the cancel callback fires as expected. \r\n\r\n{code}\r\nTi.Media.showCamera(\r\n{\r\nsuccess: function(blob) { console.log(\"camera:success\") },\r\nerror : function(e) { console.log(\"camera:error\") },\r\ncancel : function(e) { console.log(\"camera:cancel\") }\r\n});\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Camera \"cancel\" function not called from Android \"back\" button when camera has overlay", "creator": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.0.GA, 3.2.1.Nightly, 3.3.0, Nightly", "comment": { "comments": [ { "id": "288057", "author": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TiCameraActivity Needs\r\n\r\n{code}\r\n@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\t// Prevent default Android behavior for \"back\" press\r\n\t\t//If there is a cancelcallback associated with this Camera, call it\r\n\t\tif (cancelCallback != null) {\r\n\t\t\tKrollDict dict = new KrollDict();\r\n\t\t\tcancelCallback.callAsync(callbackContext, dict);\r\n\t\t} \r\n\t\tsuper.onBackPressed();\r\n\t}\r\n{code}", "updateAuthor": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T03:37:25.000+0000", "updated": "2014-01-14T03:45:55.000+0000" }, { "id": "288060", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with SDK 3.2.0 release and Samsung Galaxy Nexus device.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T04:16:32.000+0000", "updated": "2014-01-14T04:16:32.000+0000" }, { "id": "454296", "author": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has this really not been solved in 6 years? Is there a workaround? ", "updateAuthor": { "name": "homeinspectorpro", "key": "homeinspectorpro", "displayName": "Dominic Maricic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-17T00:11:13.000+0000", "updated": "2020-02-17T00:11:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }