Copy link to clipboard
Copied
It seems Air 25 has issue with CameraRoll.browseForImage(). The image browser won't open any more. Works perfectly on Air 22. Tested with 25 and didn't work. Anybody has the same issue?
Here my implementation:
private var image:ByteArray;
private var mediaSource:CameraRoll;
private var fileReference:FileReference;
private var dataSource:IDataInput;
private var eventSource:IEventDispatcher;
private function chooseImage():void
{
// mobile: load from cameraRoll
if( CameraRoll.supportsBrowseForImage )
{
mediaSource = new CameraRoll();
mediaSource.addEventListener( MediaEvent.SELECT, onCameraRollSelect );
mediaSource.addEventListener( Event.CANCEL, onCameraRollCancel );
mediaSource.addEventListener( ErrorEvent.ERROR, onCameraRollError );
mediaSource.browseForImage();
}
// desktop: load from Filesystem
else
{
fileReference = new FileReference();
fileReference.addEventListener( Event.SELECT, onFileReferenceSelect );
var arr:Array = [];
arr.push( new FileFilter( "Images", ".gif;*.jpeg;*.jpg;*.png" ) );
fileReference.browse( arr );
}
}
Copy link to clipboard
Copied
YES! thanks for posting this. All of my apps, even ones live on the store, all now have this issue with no change to the app at all. I cant figure out for the life of me what it is. It does this on samsung and htc, but not on a pixel. I think its an android update/google play update that cuased it.
Copy link to clipboard
Copied
The problem occurs on iOS too...
Copy link to clipboard
Copied
Did you check the permission scheme?
Copy link to clipboard
Copied
Well, I didn't change the xml > iPhone > InfoAdditions. CameraRoll works with the same permissions on Air 22, but not on Air 25...
Copy link to clipboard
Copied
Hi ,
Have you gone through the permissions feature added in AIR SDK 24 Release Notes Flash Player 24 AIR 24 ?
Thanks,
Ankit | Adobe AIR Engineering
Copy link to clipboard
Copied
Hi,
no I haven't. Thanks for the hint, I'll try that.
Chris
Copy link to clipboard
Copied
All 3 of my apps have proper permissions and were working just a little over a week ago. Now they open up the camera roll or camera, take the photo, but no event is triggered going back to the app. Also when trying to start the camera roll or camera again it says its in use / busy, throwing an error.
AGAIN: 1. this is not a permission issue (as it was working fine with all 3 apps with exacty same code just a little over a week ago). 2. There are a few android phones (generic brands) that dont do this, so far the galaxy and htc one do.
Also my apps currently live on the store that did work, now dont, making me wonder if it was an android update or something that is causing this.