Top "Device-orientation" questions

Use device-orientation for questions related to coding for both landscape and portrait modes of a device which can be rotated by the user

Detect viewport orientation, if orientation is Portrait display alert message advising user of instructions

I am building a website specifically for mobile devices. There is one page in particular which is best viewed in …

javascript jquery mobile viewport device-orientation
Force “landscape” orientation mode

I'm trying to force the "landscape" mode for my application because my application is absolutely not designed for the "portrait" …

javascript device-orientation
How to lock orientation of one view controller to portrait mode only in Swift

Since my app got support for all orientation. I would like to lock only portrait mode to specific UIViewController. e.…

swift uiviewcontroller portrait device-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
Flutter: How to set and lock screen orientation on-demand

On one of my flutter pages, I need the screen to set to landscape mode and lock it so it …

flutter screen-orientation device-orientation
Detecting if a device is able to change orientation in JavaScript

Is there a native JavaScript (or through the use of a library such as JQuery/Modernizr etc) way to detect …

javascript jquery orientation device-orientation orientation-changes
Responsive site is zoomed in when flipping between Portrait and Landscape on iPad/iPhone

I've built a responsive site using Twitter Bootstrap here: http://zarin.me/cce/ The responsive design works great on iPad …

orientation responsive-design viewport screen-orientation device-orientation
Android phone orientation overview including compass

I've been trying to get my head around the Android orientation sensors for a while. I thought I understood it. …

android orientation device-orientation bearing compass-geolocation
How to check if device orientation is landscape left or right in swift?

if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) { print("landscape") } if UIDeviceOrientationIsPortrait(UIDevice.currentDevice().orientation){ print("portrait") } How can I check if it's …

ios swift device-orientation
how to change video orientation in MediaRecorder to portrait

When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force …

android video-recording device-orientation mediarecorder