Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-826] Support saving camera images to file in Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, camera, defect
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:37:16.000+0000
Updated2011-04-17T01:54:22.000+0000

Description

See Q&A:
http://developer.appcelerator.com/question/19441/does-titanium-supports-saving-camera-images-to-file-in-anroid"> http://developer.appcelerator.com/question/19441/does-titanium-supp...

Comments

  1. Matthew Lenton 2011-04-15

    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?

  2. Don Thorp 2011-04-15

    It probably just needs to be enabled in the test. I think we added file support in another defect probably in 1.3.0.

  3. Matthew Lenton 2011-04-15

    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?

  4. Don Thorp 2011-04-15

    (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...

  5. Jeff Haynie 2011-04-15

    (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...

JSON Source