Orientation not working on Droid

Simple: The provided code Orientation when rendered and uploaded to a Droid and an HTC does not work. It works great in the Simulator though.

Build Date 9 1 2011
Sim Build : 2011.610
Long Explanation: At first I thought it was my code until I built out the provided code example. [import]uid: 59380 topic_id: 15210 reply_id: 315210[/import]

Same thing here. Also with an HTC Android device. [import]uid: 89853 topic_id: 15210 reply_id: 56567[/import]

As far as I know orientation support is limited (by design) on Android platform compared to iOS, see the link for details…

http://developer.anscamobile.com/content/configuring-projects

The Android platform supports two orientations: portrait and landscapeRight (defined as above). The orientations “landscapeLeft” and “portraitUpsideDown” have no effect on Android. Also, auto-rotation is not currently supported on Android. [import]uid: 10478 topic_id: 15210 reply_id: 56570[/import]

It does not. Android doesn’t support either, hence why I made a bug post. Here’s a link to a video of the Orientation script provided by Ansca on an HTC phone.

I spin the phone 360, then perform a faceUp and then a faceDown.

http://www.youtube.com/watch?v=qPCFNsM23FY [import]uid: 59380 topic_id: 15210 reply_id: 56743[/import]

Did you ever resolve your issue with orientation on Android devices? I am also having the same problems with orientation on Android devices, but no problem on simulator or iPhone hardware.

When I run my app (or the sample Native Orientation app) on an Android device, changing the orientation of the device doesn’t seem to change the system.orientation value. It is triggering an orientation event though.

So, what seems to happen is that the screen does rotate, but my code is unable to deal with the rotation by repositioning items to account for the new orientation, so everything’s displayed wrong.

The build.settings file has all the orientations set as available, as per the sample code.

I understand that Android has more limited support for orientation changes than iOS, but does ‘auto-rotation is not currently supported on Android’ mean that, for Android, I can’t allow the user to rotate their phone and should only have one allowable orientation in my build.settings file?

Thanks [import]uid: 93610 topic_id: 15210 reply_id: 69574[/import]

We are aware of this bug and a post was made about today in another thread. (One I believe you may be subscribed to as well?)

Peach :slight_smile:

[import]uid: 52491 topic_id: 15210 reply_id: 69652[/import]

Thanks Peach, I wasn’t sure which was the best place to post since it was Thanksgiving so tried both :slight_smile:

[import]uid: 93610 topic_id: 15210 reply_id: 69686[/import]

That’s fine - thanks for making sure we heard about it!

Peach :slight_smile: [import]uid: 52491 topic_id: 15210 reply_id: 69757[/import]

Everyone,

There was a bug with the “system.orientation” property on Android where it would only provide the app’s launch orientation on startup and would never update again. This has been fixed in the newest daily builds. [import]uid: 32256 topic_id: 15210 reply_id: 71463[/import]