-
1. Re: CameraRoll on Android and pictures from Google drive
jadams602 Aug 8, 2013 9:18 PM (in response to S_Aleksey)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.
-
2. Re: CameraRoll on Android and pictures from Google drive
jadams602 Aug 11, 2013 6:55 AM (in response to jadams602)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:
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.
-
3. Re: CameraRoll on Android and pictures from Google drive
nimitja Aug 12, 2013 3:51 AM (in response to jadams602)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
-
4. Re: CameraRoll on Android and pictures from Google drive
esDotDev Nov 14, 2013 8:14 PM (in response to nimitja)I've created a bug for this issue, if this affects you please vote on it
https://bugbase.adobe.com/index.cfm?event=bug&id=3655606 -
5. Re: CameraRoll on Android and pictures from Google drive
esDotDev Jan 21, 2014 11:47 PM (in response to nimitja)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, -
6. Re: CameraRoll on Android and pictures from Google drive
mola2alex Nov 22, 2014 5:25 PM (in response to esDotDev)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.
-
7. Re: CameraRoll on Android and pictures from Google drive
Romil Mittal Nov 23, 2014 2:02 AM (in response to jadams602)We understand the concern and are very sorry for the inconvenience caused.
The team had been busy with other high priority work items on Android and iOS, and as a result this issue could not get picked up. We will let you know as soon as we reach to this issue, and have any news for you.
Thanks for your patience.
-
8. Re: CameraRoll on Android and pictures from Google drive
mola2alex Nov 24, 2014 6:18 AM (in response to Romil Mittal)Patience? How many more YEARS do we need to be patient for? Is this API supported or not, if not then deprecate the API rather than acting like it will get fixes. At least that way we can look into other options. It is getting more and more critical, all existing apps with cameraroll api are impacted as there is more and more blending of local vs cloud images into a single photo view. A user will choose a photo and it will not load. There is no way besides a generic error message to let them know it failed. And then you need to explain the reason which makes users simply delete your app. Why not at least expose the the path or content URI so we can detect that and have a quick ANE that can load that?


