{ "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\n

Testing 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\n

Ticket Reference http://support-admin.appcelerator.com/display/IDM-35349-465

{html}", "attachment": [], "flagged": false, "summary": "Android: showCamera doesn't work in USB-Storage mode", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130712", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is expected behavior. He's basically ejected the\nSDCard.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:45:45.000+0000", "updated": "2011-04-15T03:45:45.000+0000" }, { "id": "195107", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue cannot be reproduced with the 2.0.1 release.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T16:33:30.000+0000", "updated": "2012-05-16T16:33:30.000+0000" }, { "id": "411164", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T00:11:32.000+0000", "updated": "2017-03-10T00:11:32.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }