{ "id": "64113", "key": "TIMOB-3481", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-05-16T16:33:11.000+0000", "created": "2011-04-15T03:45:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T00:11:32.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": "{html}
Problem When testing on an HTC\r\nIncredible, showCamera does not work while in 'USB-Storage\r\nmode.
\r\nTesting Code
\r\n\r\nvar cameraGalleryHandler = {\r\n success:function(event)\r\n {\r\n var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'images/' + data.ID + '.png');\r\n f.write(image);\r\n },\r\n error:function(error)\r\n {\r\n var a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n a.setMessage( error.code == Titanium.Media.NO_CAMERA ? 'Please run this on a device.' : 'Unexpected error: ' + error.code);\r\n a.show();\r\n },\r\n allowEditing:true,\r\n mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],\r\n saveToPhotoGallery: true\r\n};
\r\n
\r\nTicket Reference http://support-admin.appcelerator.com/display/IDM-35349-465
This is expected behavior. He's basically ejected the\nSDCard.