Skip to main content
breathedev
Participant
May 24, 2015 6:37 PM UTC
Question

cameraRoll.browseForImage() orientation issue iOS 8 AIR 17

I have a simple app that lets you choose a photo from your camera roll

descriptor file is as follows:

<aspectRatio>portrait</aspectRatio>

<autoOrients>false</autoOrients>

Code is as follows:

var cameraRoll:CameraRoll = new CameraRoll();

cameraRoll.addEventListener(Event.CANCEL, onCancelHandler, false, 0, true);

cameraRoll.addEventListener(MediaEvent.SELECT, onPhoto, false, 0, true);

cameraRoll.browseForImage();

The problem is that my app is portrait and is NOT supposed to auto-orient, but if while browsing I rotate the device and either 1) hit cancel or 2) select an image, my app is rotated to the stage.deviceOrientation of when #1 or #2 happened. and stage.orientation still reads as StageOrientation.DEFAULT.

Anyone experience this as well?

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

breathedev
Participant
May 24, 2015 6:46 PM UTC

added to the adobe bug database: Bug #3993768

Bug 3993768

Bug 3993768

Translate
Adobe Employee
May 25, 2015 6:36 AM UTC

Thanks for raising the Issue.

We are able to reproduce the issue and investigating it further.

Regards,

Adobe AIR Team

Translate