Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

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

$
0
0

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[i].getDirectoryListing();    for (var j:int=0 ; j<files.length; j++) {        var photo:File = files[j];        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-fl ex-mobile-project


Viewing all articles
Browse latest Browse all 2954

Trending Articles