Skip to main content
NikosMT
Participant
Apr 13, 2016 9:50 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

Adobe Employee
Apr 13, 2016 10:06 AM UTC

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
NikosMT
NikosMTAuthor
Participant
Apr 13, 2016 10:16 AM UTC

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
Adobe Employee
Apr 13, 2016 11:12 AM UTC

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