• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

change screen orientation - desktop, Windows 8

New Here ,
Oct 24, 2014 Oct 24, 2014

Copy link to clipboard

Copied

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!

TOPICS
Development

Views

767

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 08, 2016 Mar 08, 2016

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 10, 2016 Mar 10, 2016

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines