Skip to main content
June 3, 2013
Question

CameraRoll on Android and pictures from Google drive

  • June 3, 2013
  • 2 replies
  • 9455 views

CameraRoll currently allows to browse and select pictures which are stored on google drive and not the device itself. If I select picture from google drive I get #2004 error when I use open method of MediaPromise. Is there any way to exclude google drive images from CameraRoll? Or may be some way to load them without getting error?

Best Regards, Aleksey

This topic has been closed for replies.

2 replies

Inspiring
March 29, 2016

Hey Guys,

Don't be disappoint for this minor issue. I found exact solution for Android and iOS. Please let me know if any one still facing the problem to display the selected image from gallery.

Thanks!

jadams602
Inspiring
August 9, 2013

I have a fairly similar issue with CameraRoll on Android like you are getting but for a different type of 'special' image type in Gallery

Gallery on my Nexus 7 also shows Picasso images in the Gallery.

If you browseForImage and select a Picasso image.

MediaPromise.file is null

and when you do MediaPromise.open() it returns null as well when it is supposed to return an IDataInput.

Using the same code, and selecting images in the Gallery that are local files works perfectly fine. You can use MediaPromise.file or you can even use MediaPromise.open() and read the bytes directly.

I am using latest AIR 3.8 SDK beta 3.8.0.1040

Is AIR just not able to handle all these non-local file types that Android chooses to show us in Gallery?

Were you able to resolve your issues Aleksey?

Did you possibly try the alternative Loader.loadFilePromise(mediaPromise, loaderContext) technique?

I'd really hate to have to resort to doing this to get a Bitmap and then having to reencode it back to a PNG or JPEG to save to the filesystem,

as I ultimately need a filesystem reference of the original image which the MediaPromise.file or MediaPromise.open solutions give you.

jadams602
Inspiring
August 11, 2013

Just to followup with my own suggestion, I tried using Loader.loadFilePromise, and this didn't throw an error but it also didn't call either the complete or error listeners.

It seems these newer 'special' images in Gallery for things like remote Picassa albums or Google Drive are tripping up and complicating the life of even native Java Android developers, so I imagine Adobe needs to update their CameraRoll support on Android to handle these non-local images in Gallery:

http://dimitar.me/how-to-get-picasa-images-using-the-image-picker-on-android-devices-running-any-os-version/http://

Bad situation for us, as we can't filter the Gallery choices and certain images have to just error out on selection by users of our AIR apps. Maybe someone will write a more advanced and updated Gallery picker ANE to support all images if Adobe won't be updating CameraRoll soon.

Inspiring
November 23, 2014

nimitja wrote:

Hello,

The problem is reproducible with non-local images. I request you to open a new bug report on this over at bugbase.adobe.com including sample media. Once the bug has been added would you mind posting back with the URL so that others affected can add their votes and comments?

Regards,

Nimit

Hi Nimitja, has there been any progress on this? I sent you a reproduction case a couple of months ago, and haven't heard any updates.
Thanks,


Nimitja,


Any update?  It's crazy that this is taking so long.  At least respond and deprecate the api instead of silence so developers just wait and hope.  Such poor communication.  Come on, support your stuff.