8 Replies Latest reply: Nov 24, 2014 6:18 AM by mola2alex RSS

    CameraRoll on Android and pictures from Google drive

    S_Aleksey Community Member

      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

        • 1. Re: CameraRoll on Android and pictures from Google drive
          jadams602 Community Member

          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 Community Member

            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-runni ng-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.

            • 3. Re: CameraRoll on Android and pictures from Google drive
              nimitja Employee Hosts

              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 Community Member

                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 Community Member

                  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 Community Member

                    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 Employee Hosts

                      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 Community Member

                        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?