Skip to main content
Participant
October 24, 2014
Question

change screen orientation - desktop, Windows 8

  • October 24, 2014
  • 1 reply
  • 857 views

I'm creating desktop AIR application (Windows 8, AIR 15) for interactive table.

Is it possible to change screen orientation with stage.setOrientation()?

Using screen orientation APIs for smartphone application development | Adobe Developer Connection

It's not working here. Any workaround?


Thank you!

This topic has been closed for replies.

1 reply

globzie
Participating Frequently
March 8, 2016

hello,

we are trying to do the same (launch an app in portrait mode) now on Windows 10.

Anyone figured a way to do this? We had something working on Windows 10 via a Native Process but it does not work when the device is in tablet mode.

Found about the topic:

Supporting screen orientation (DirectX and C++)

https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DisplayOrientation

Thanks!

globzie
Participating Frequently
March 10, 2016

Hello,

The issue was that our rotation.exe script was not signed so it did not work.

I think I found a partial solution. Use this (signed) display.exe via a Native Process.

However in the case of a portable device that has "Auto rotate" turned on the orientation goes back to landscape if the user holds the device in landscape mode. But you can detect it inside the AIR app. See what happens in that video.

Then you can display an image asking the user to rotate the device back to portrait.

sValK.png