[TIMOB-16174] TiAPI: Add file information to returned Blob when camera is set to saveToPhotoGallery = true
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | n/a |
Reporter | Andrew Greenstreet |
Assignee | Unknown |
Created | 2014-01-10T21:38:19.000+0000 |
Updated | 2018-02-28T20:03:48.000+0000 |
Description
It would great, if when setting saveToPhotoGallery = true for an image taken with the camera, that file information is returned to the Blob.
Currently, the file is saved, but we have no way of know the name or path of this file.
This would require a quick update to TiCameraActivity.java turning
private static void saveToPhotoGallery(byte[] data)
into
private static File saveToPhotoGallery(byte[] data)
And updating the Blob in
public void onPictureTaken(byte[] data, Camera camera)
With a TiFile reference.
I'm not sure if iOS has this same issue.
Moving this enhancement request to engineering for further evaluation and prioritization.
I've made this change. Please see: https://github.com/appcelerator/titanium_mobile/pull/4968