Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Best approach to select multiple/all photos from the iOS CameraRoll?

Guest
Aug 15, 2011 Aug 15, 2011

I want to use FlashBuilder 4.5.1 to build a flex mobile photo organizer project that lets me select multiple photos from the iPhone Camera Roll.

I've seen the flash.media.CameraRoll class, but it only seems to provide CameraRoll.browseForImage() that opens a dialog to pick ONE photo.

Has anyone built an app that lets users select multiple photos or select all from the CameraRoll? Can you access the embedded thumbnail DB or do you have to import all the photos into the ApplicationStorageDirectory first? Am I better off writing a native iOS application?

Does flex mobile allow something like this:

// is this a security violation?
var cameraRoll:File = new File('/var/mobile/Media/DCIM');

var photos:Array = [];
var folders:Array = cameraRoll.getDirectoryListing();
for (var i:int=0 ; i<folders.length; i++) {
    var files:Array = folders.getDirectoryListing();
    for (var j:int=0 ; j<files.length; j++) {
        var photo:File = files;
        photos.push(photo);
    }
}
// show photos, somehow...

However, this method does not provide access to thumbnails managed by: '/var/mobile/User/Media/Photos/Photo Database'

from: http://stackoverflow.com/questions/6936881/how-do-you-access-the-ios-camera-roll-from-a-flex-mobile-...

TOPICS
Development
20.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Aug 16, 2011 Aug 16, 2011

Right now (AIR 2.7), the CameraRoll class doesn't have the features you need. In AIR 3 (release data TBA), you could write a native extension that would provide such features. So, if you need these features right now, or you don't think the benefits of using AIR for the rest of your application are sufficient, then you should write a native application. On the other hand, if the rest of the application is faster and easier to write in Flex than Objective C or you want to publish the app on Andro

...
Translate
Mentor ,
Aug 16, 2011 Aug 16, 2011

Right now (AIR 2.7), the CameraRoll class doesn't have the features you need. In AIR 3 (release data TBA), you could write a native extension that would provide such features. So, if you need these features right now, or you don't think the benefits of using AIR for the rest of your application are sufficient, then you should write a native application. On the other hand, if the rest of the application is faster and easier to write in Flex than Objective C or you want to publish the app on Android and Playbook (and maybe the desktop as well), and you can wait a bit for AIR 3, then you will probably come out ahead sticking with Flex.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2011 Sep 04, 2011

I already install the AIR 3.0 but i can't see the multiple images camera roll selection features? Do you any example?

HUGO

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 05, 2011 Sep 05, 2011

You would need to write a native extension that supports multiple image selection. While the native extension feature is in the beta, we haven't released the documentation required to use it. This documentation will be available when AIR 3 is released.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 11, 2011 Oct 11, 2011

I just noticed that AIR3 was released. Is there a "howto" available for writing a native extension on iOS? Thx.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 12, 2011 Oct 12, 2011
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 01, 2011 Nov 01, 2011

Did you come up with a solution? I have to upload multiple photos in my app.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 01, 2011 Nov 01, 2011

Not a good one yet. I hired a programmer to write a nativeiOS app, which turned out ok, but not great. The problem is that it took a lot longer than planned and I have to pay to do simple changes. Also, the programmer had me make many UI compromises to keep the native iOS app from using too much memory when dealing with many full-res photos. Not sure if a Flex Mobile project will have the same issues.

Now I'm trying to figure out if I can resue some of that code to build a Flex Native Extension. Haven't gotten to it yet. Wanna help?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 20, 2011 Nov 20, 2011

I also really need this.

Native extensions are now possible, but I don't have a Mac, so I can't actually create the extension.

Has anyone actually created a native extension for iOS to access all of the user's images (including thumbnails)?

This has been holding a project of mine up for a month and a half.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 21, 2011 Nov 21, 2011

I paid someone to write a Native iOS app that works ok, but it's hard for me to extend. The "select multiple/all" photos component works fine, but loading the photos into the app sandbox is VERY SLOW, and not properly threaded.

I would like to move my dev to FlexMobile and am willing to contribute my current code if someone wants to take a hack at it. Please feel free to fork https://github.com/mixersoft/odesk-11563930

I'd help, but I only know scripting languages.

m.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2012 Oct 24, 2012

Hi mixersoft,

I am developing a mobile app for iPad (using Flex Builder) and need  select multiple photos from the cameraroll.

Please, can you help with this?

I don't know how to write a native extension on iOS.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 28, 2014 Jul 28, 2014

Distriqt has one for sale http://distriqt.com/product/air-native-extensions/camera-roll-extended

I realize it is an old thread but I am looking for the same thing as above iOS but one for Android.  I have a developer that will do it but wondering if anyone wants to share in the cost.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 08, 2015 Apr 08, 2015

I am interested in sharing the cost if it is acceptable.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 14, 2015 Apr 14, 2015

We are using the one provided by Distriqt and have a question if someone has the solution. It produces Bitmap Data which needs to be converted to Byte Array, so as to send to PHP back-end. This results in lot of processing time.. Is there any way to obtain Byte Array directly or any other work around to optimize the processing time?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 14, 2015 Apr 14, 2015
LATEST

I'm using also components Distriqt, I wondered if there was a native that allows you to do the same on Android.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines