Top "Screen-orientation" questions

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

I want my android application to be only run in portrait mode?

I want my android application to be only run in portrait mode? How can I do that?

android screen-orientation
Change Screen Orientation programmatically using a Button

I think this is implementable since screen rotation behaviour can go up to the application level.

android android-button screen-orientation
How do I change screen orientation in the Android emulator?

How do we change emulator screen orientation to landscape or portrait?

android emulation screen-orientation
How to prevent custom views from losing state across screen orientation changes

I've successfully implemented onRetainNonConfigurationInstance() for my main Activity to save and restore certain critical components across screen orientation changes. But …

android android-activity state screen-orientation
Android: allow portrait and landscape for tablets, but force portrait on phone?

I would like tablets to be able to display in portrait and landscape (sw600dp or greater), but phones to …

android tablet screen-orientation
Android: Temporarily disable orientation changes in an Activity

My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy …

android screen-orientation android-orientation
Will $(window).resize() fire on orientation change?

Im using this to run some code when a browser window is resized: $(window).resize(callback) I also need to …

javascript jquery screen-orientation
i want to make my application only in landscape in android

I want to make my app work only in landscape mode but can't make it work. I have given screenOrientation = "…

android android-layout android-xml screen-orientation
How to get current orientation of device programmatically in iOS 6?

I have developed an iOS App and tested it on iOS6 device. While testing, I realized that my App is …

iphone ios6 screen-orientation device-orientation ipad-3
How do I get the CURRENT orientation (ActivityInfo.SCREEN_ORIENTATION_*) of an Android device?

I would like to find out the detailed orientation of a device, preferably one of SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_…

android screen-orientation