Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3481] Android: showCamera doesn't work in USB-Storage mode

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-05-16T16:33:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:45:44.000+0000
Updated2017-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

Comments

  1. Don Thorp 2011-04-15

    This is expected behavior. He's basically ejected the SDCard.

  2. Neeraj Gupta 2012-05-16

    This issue cannot be reproduced with the 2.0.1 release.
  3. Lee Morris 2017-03-10

    Closing this ticket as the issue cannot be reproduced.

JSON Source