[TIMOB-826] Support saving camera images to file in Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | Android |
Labels | android, camera, defect |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:37:16.000+0000 |
Updated | 2011-04-17T01:54:22.000+0000 |
Looks pretty straightforward so far, images save just fine to the gallery using saveToPhotoGallery(image)
Should this added support be built into camera_basic.js, or into a new example?
It probably just needs to be enabled in the test. I think we added file support in another defect probably in 1.3.0.
I'm comfortable about resolving this ticket but wondering about what in fact should be happening.
I have put together a solution that:
supplies the saveToPhotoLibrary value of options key when calling Titanium.Media.showCamera
depending on the value, the image captured is saved to the photo library, otherwise not
Is this sufficient or should there be more of a user choice in the example on whether to save the image to photo library? I'm thinking while it'd even be possible to open the photo gallery after saving, would that be overkill?
(from [86e730a7b23dd9e96a68dc4b342ec6a24a5f3f8d]) [#826 state:open] added saveToPhotoGallery in showCamera options. patch from Matthew Lenton http://github.com/mlenton">http://github.com/mlenton http://github.com/appcelerator/titanium_mobile/commit/86e730a7b23dd9e96a68dc4b342ec6a24a5f3f8d"> http://github.com/appcelerator/titanium_mobile/commit/86e730a7b23dd...
(from [1b50d5bef04de1643c1245d6ee9d9a09703766f0]) [#826 state:open] added saveToPhotoGallery in showCamera options https://github.com/appcelerator/titanium_mobile/commit/1b50d5bef04de1643c1245d6ee9d9a09703766f0"> https://github.com/appcelerator/titanium_mobile/commit/1b50d5bef04d...