Skip to main content
NikosMT
Participant
April 13, 2016
Question

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

  • April 13, 2016
  • 1 reply
  • 1002 views

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.

This topic has been closed for replies.

1 reply

Adobe Employee
April 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

NikosMT
NikosMTAuthor
Participant
April 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.

Adobe Employee
April 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