{ "id": "61458", "key": "TIMOB-826", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:22.000+0000", "created": "2011-04-15T02:37:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "camera", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:22.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}
{html}", "attachment": [], "flagged": false, "summary": "Support saving camera images to file in Android", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124140", "author": { "name": "matthewlenton", "key": "matthewlenton", "displayName": "Matthew Lenton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}Looks pretty straightforward so far, images save just fine to\nthe gallery using saveToPhotoGallery(image)
\nShould this added support be built into camera_basic.js, or into\na new example?
It probably just needs to be enabled in the test. I think we\nadded file support in another defect probably in 1.3.0.
I'm comfortable about resolving this ticket but wondering about\nwhat in fact should be happening.
I have put together a solution that:
\nsupplies the saveToPhotoLibrary value of options key when\ncalling Titanium.Media.showCamera
\ndepending on the value, the image captured is saved to the photo\nlibrary, otherwise not
\nIs this sufficient or should there be more of a user choice in\nthe example on whether to save the image to photo library? I'm\nthinking while it'd even be possible to open the photo gallery\nafter saving, would that be overkill?
(from [86e730a7b23dd9e96a68dc4b342ec6a24a5f3f8d])\n[#826\nstate:open] added saveToPhotoGallery in showCamera options. patch\nfrom Matthew Lenton http://github.com/mlenton \nhttp://github.com/appcelerator/titanium_mobile/commit/86e730a7b23dd...
(from [1b50d5bef04de1643c1245d6ee9d9a09703766f0])\n[#826\nstate:open] added saveToPhotoGallery in showCamera options \nhttps://github.com/appcelerator/titanium_mobile/commit/1b50d5bef04d...