[TIMOB-3481] Android: showCamera doesn't work in USB-Storage mode
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-05-16T16:33:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:45:44.000+0000 |
Updated | 2017-03-10T00:11:32.000+0000 |
Description
Problem When testing on an HTC Incredible, showCamera does not work while in 'USB-Storage mode.
Testing Code
var cameraGalleryHandler = {
success:function(event)
{
var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'images/' + data.ID + '.png');
f.write(image);
},
error:function(error)
{
var a = Titanium.UI.createAlertDialog({title:'Camera'});
a.setMessage( error.code == Titanium.Media.NO_CAMERA ? 'Please run this on a device.' : 'Unexpected error: ' + error.code);
a.show();
},
allowEditing:true,
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
saveToPhotoGallery: true
};
Ticket Reference http://support-admin.appcelerator.com/display/IDM-35349-465">http://support-admin.appcelerator.com/display/IDM-35349-465
This is expected behavior. He's basically ejected the SDCard.
This issue cannot be reproduced with the 2.0.1 release.
Closing this ticket as the issue cannot be reproduced.