Top "Orientation" questions

Orientation is the way up, down, left or right something is facing or being held in.

Get device angle by using getOrientation() function

I was using Sensor.TYPE_ORIENTATION to determine current angle of device but TYPE_ORIENTATION is deprecated on API version 8. …

android orientation sensors android-sensors sensormanager
Android: Camera preview orientation in portrait mode

I'm using the camera to show preview only (not to take pictures or record videos). The app is always in …

android camera rotation orientation portrait
Screen orientation lock

Is there a reliable way to lock screen orientation on all Android devices? The code below works for my Nexus …

android locking rotation screen orientation
What is the best method of re-rendering a web page on orientation change?

I have a fluid CSS layout which is rendering badly on an iphone when I change the orientation. (It looks …

javascript iphone mobile orientation
Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some Gingerbread devices

I had the orientation issue when working with ACTION_IMAGE_CAPTURE activity. I have used the TAG_ORIENTATION so that …

android orientation exif image-capture
Setting the orientation for only 1 fragment in my activity while the rest is in portrait

My app needs to be in portrait mode so I set it in the manifest by: android:screenOrientation="portrait" But …

android android-fragments orientation
How to retain EditText data on orientation change?

I have a Login screen which consists of 2 EditTexts for Username and Password. My requirement is that on orientation change , …

android android-layout android-edittext orientation
Which activity method is called when orientation changes occur?

Which method of the lifecycle is called when orientation changes occur? My application executes the onResume() method or maybe reloads …

android android-activity orientation onresume
shouldAutorotateToInterfaceOrientation is not working in iOS 6

In iOS 6, shouldAutorotateToInterfaceOrientation is not working, but it worked fine in iOS 5.0 and 5.1. What do I need to change for …

xcode orientation ios6 screen-orientation
iPhone AVFoundation camera orientation

I've been tearing my hair out trying to get the AVFoundation camera to capture a picture in the correct orientation (…

iphone camera orientation avfoundation