Skip to main content
Participant
November 17, 2017
Question

CameraRoll

  • November 17, 2017
  • 2 replies
  • 786 views

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 );

  }

  }

This topic has been closed for replies.

2 replies

Inspiring
November 18, 2017

Did you check the permission scheme?

Participant
November 20, 2017

Well, I didn't change the xml > iPhone > InfoAdditions. CameraRoll works with the same permissions on Air 22, but not on Air 25...

Anki_AG_
Adobe Employee
Adobe Employee
November 20, 2017

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

Participating Frequently
November 17, 2017

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.

Participant
November 18, 2017

The problem occurs on iOS too...