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

Air 22 beta - App crashes on iOS when I call CameraUI

New Here ,
Apr 13, 2016 Apr 13, 2016

I use Adoe Air 22 beta on iOS 9.2.1 and 9.3.1.

When I make a call:

var PICcamera:CameraUI;

PICcamera.launch(MediaType.IMAGE);

..the app crashes. Also, the app crashes when I try to use a cameraRoll extension from distriqt (maybe for the same reason?).

When I used Air 21 the cameraUI worked, but unfortunately (as I read) I cannot upload such a windows build to the appStore.

TOPICS
Air beta
1.0K
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
Adobe Employee ,
Apr 13, 2016 Apr 13, 2016

Hi, I see you have not created the object of CameraUI.

Please try the following.

var PICcamera:CameraUI= new CameraUI();

PICcamera.launch(MediaType.IMAGE);

Let us know if it works.

-Roshan

Adobe AIR

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 13, 2016 Apr 13, 2016

Thanks for answering, Roshan.

I have created the object, I just didn't mentioned in my previous post.

The call was working fine in previous Air versions, something is wrong in Air 22 beta. I posted the issue hoping that it will be fixed before the final release.

For reference, the full code is like this:

var PICcamera:CameraUI;

if (CameraUI.isSupported) {

        PICcamera = new CameraUI();

        PICcamera.addEventListener(MediaEvent.COMPLETE, PICmediaEventComplete);

        PICcamera.addEventListener(Event.CANCEL, PICmediaEventCancel);

        PICcamera.addEventListener(ErrorEvent.ERROR, PICmediaEventError);

        PICcamera.launch(MediaType.IMAGE);

}

If I remove the "launch" the app does not crash.

The app is allowed to access camera and photos.

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
Adobe Employee ,
Apr 13, 2016 Apr 13, 2016

Hi,

We have reproduced the issue at our end.

Our Engineering team will be looking into this. We will let you know as soon as the issue is fixed.

-Roshan

Adobe AIR

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 13, 2016 Apr 13, 2016

Thanks a lot Roshan, good to know.

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
Adobe Employee ,
May 18, 2016 May 18, 2016

This bug has been fixed in the latest beta. please check it from : Download Adobe AIR 22 Beta - Adobe Labs

Let us know if you face any issues.

-Roshan

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 ,
May 19, 2016 May 19, 2016
LATEST

Thanks a lot Roshan,
this bug has been fixed!

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