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

CameraRoll

New Here ,
Nov 17, 2017 Nov 17, 2017

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

  }

  }

TOPICS
Performance issues

Views

567

Translate

Translate

Report

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 ,
Nov 17, 2017 Nov 17, 2017

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.

Votes

Translate

Translate

Report

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 ,
Nov 18, 2017 Nov 18, 2017

Copy link to clipboard

Copied

The problem occurs on iOS too...

Votes

Translate

Translate

Report

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
Engaged ,
Nov 18, 2017 Nov 18, 2017

Copy link to clipboard

Copied

Did you check the permission scheme?

Votes

Translate

Translate

Report

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 ,
Nov 19, 2017 Nov 19, 2017

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

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 19, 2017 Nov 19, 2017

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

Votes

Translate

Translate

Report

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 ,
Nov 19, 2017 Nov 19, 2017

Copy link to clipboard

Copied

Hi,

no I haven't. Thanks for the hint, I'll try that.

Chris

Votes

Translate

Translate

Report

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 ,
Nov 20, 2017 Nov 20, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

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