[TIMOB-16182] Android: Camera "cancel" function not called from Android "back" button when camera has overlay
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Andrew Greenstreet |
Assignee | Unknown |
Created | 2014-01-13T20:09:09.000+0000 |
Updated | 2020-02-17T00:11:13.000+0000 |
Description
On Android using
Ti.Media.showCamera(
{
showControls: false,
autohide: true,
overlay: Ti.UI.createView({width:100, height:100, backgroundColor:"blue"}),
success: function(blob) { console.log("camera:success") },
error : function(e) { console.log("camera:error") },
cancel : function(e) { console.log("camera:cancel") }
});
Pressing the Android back button will not fire the "cancel" callback;
However, when no overlay is specified, the cancel callback fires as expected.
Ti.Media.showCamera(
{
success: function(blob) { console.log("camera:success") },
error : function(e) { console.log("camera:error") },
cancel : function(e) { console.log("camera:cancel") }
});
TiCameraActivity Needs
Moving this ticket to engineering as I can reproduce this issue with SDK 3.2.0 release and Samsung Galaxy Nexus device.
Has this really not been solved in 6 years? Is there a workaround?