Skip to main content
Known Participant
October 9, 2013
Question

Save image to album in iOS

  • October 9, 2013
  • 1 reply
  • 1375 views

Hi there,

Do you know if there is a way to create an album folder and then save a picture into this album using CameraRollUI in iOS / Android?

If it's not possible, do you know a native extention that would do the job?

Thanks.

This topic has been closed for replies.

1 reply

Participating Frequently
January 17, 2014

I'm looking for the same answer...

I have no pb to save in a specific folder aka album on Android. I can save my picture in the camera roll, but didn't find any ANE or workaround to save the pic in a custom Album yet.

Did you find a workaround?

Thx

8power8Author
Known Participant
January 17, 2014

Unfortunantly, I did not find any way to achieve this... Maybe I could consider filling a new bug entry.

Can you describe the way you did this for Android since  CameraRoll.addBitmapData() does not accept any parameters ?

Participating Frequently
January 17, 2014

On Android I actually use a pretty complicated trick and, my bad, it's not really working

First I convert the bitmap data using the alchemy library Jpeg encoder (the website of the developer seems down but you'll find this lib here: https://github.com/ranklau/repos/tree/master/labs/swfupload2.5-fixed/src/swfupload2.5 )

Then I save the file (a byteArray) using FileStream on the internal storage (DCIM or Pictures Folder).

And there I have a refresh problem. I've tried to use this extension: http://extensionsforair.com/extensions/refresh-gallery/

(available here: http://ge.tt/97y5BKF/v/0?c )

But it doesn't really work... At least not on Android Kitkat it's prompting a message saying it does, but the gallery is not refreshed. The only way I found to refresh the Gallery is to reboot the phone which is not acceptable.

I don't develop ANE myself, but as it is possible in native (objective C and Java) to select an album, I guess it's possible to develop an ANE to that purpose.

Or should we add this request in adobe bug database or adobe Idea.

Cheers,