Top "Screen-orientation" questions

Detects whether the screen is in portrait orientation (height > width) or landscape orientation (width > height), and switches between the two.

Android Orentation Changes

I have a simple Activity called SingleTouchTest to make sense of screen touches. What is strange is that SingleTouchTest starts …

android screen-orientation screen-rotation android-4.0.3-ice-cream-sandwich
Repositioning controls when the orientation changes

I know Auto Layout can be used to make the sizes and position consistent when the orientation changes. Is it …

iphone ios objective-c screen-orientation autolayout
How to detect my screen orientation in portrait locked screen in android?

I want to find the camera screen orientation in locked portrait orientation mode, well I am using camera in my …

android screen-orientation sensormanager
Android: Disable rotations by 90°, but enable rotations by 180°

I would like to create an Android app (for a tablet) that should be only displayed in landscape orientation, e.…

android orientation screen-orientation
What is the best way to detect orientation in an app extension?

What is the best way to detect a device's orientation in an application extension? I have had mixed results with …

ios orientation ios8 screen-orientation ios-app-extension
Activity Restarts when Orientation changes android?

I have a application ,where I am using Landscape and potrait mode. I have used android:configChanges="orientation|keyboardHidden" in …

android orientation screen-orientation android-orientation device-orientation
Android widget different portrait and landscape orientation

I have a (hopefully) a relatively simple question. How do I tell Android which layout to use for portrait and …

android widget android-widget screen-orientation
How do you force a configuration change in an Android Robolectric test?

I'm using robolectric to make my android unit tests fast enough to be useful. I want to test that code …

android unit-testing screen-orientation robolectric