orientation

Ipad photos not rotated when uploaded to a website directly from iPad but ok when uploaded from the computer

假如想象 提交于 2020-01-03 15:59:11
问题 I'm developing a PHP website, and when I upload a photo taken from the ipad in portrait mode, it appears in landscape on the website, yet when I upload the very same photo from the computer (no changes made to the photo) it appears correctly in landscape mode. All landscape photos appear in landscape orientation just fine. I've tried to find a way to fix this, and read about getting the orientation from the EXIF data, but the "orientation" tag is actually always the same (1 if I remember

Android Convert device coordinate system to “user” coordinate system

痴心易碎 提交于 2020-01-03 12:26:29
问题 My question is similar to Changing sensor coordinate system in android I want to be able to compare a user's movements with each other regardless of device orientation. So that when the users holds out the phone in portrait orientation and bends his arm, acceleration readings are the same as when he holds out his phone in landscape and then bends his arm in the same direction. This is what I call the "user" coordinate system. It is different from the world coordinate system since it should

Life cycle predicament with orientation change in another activity

…衆ロ難τιáo~ 提交于 2020-01-03 10:47:27
问题 I've got 2 activities in a tabhost. In Activity1, I handle orientation changes and when the user switches between activities fine. The problem starts when the user switches from Activity1 to Activity2 (via tab select), performs an orientation change, then switches BACK to Activity1. I get a bit lost with the life cycle events that take place in my Activity1 while things are going when Activity2 is visible. According to the debugger, here's the sequence of events that occur in my Activity1: ==

setting screenOrientation in AndroidManifest.xml does not work

天涯浪子 提交于 2020-01-03 08:59:33
问题 I have a simple hello world Android testing project. In my AndroidManifest.xml, I already set android:screenOrientation="portrait" android:configChanges="keyboardHidden|keyboard|orientation"> but when I debug my code, the variable isLandscape is True when it should supposed to be False boolean isLandscape = getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; I know that I can also set the activity orientation by code, but I need to set it in xml for some

Android VideoView not playing Portrait Orientation

大憨熊 提交于 2020-01-03 07:08:08
问题 THE PLATFORM: Developing in Eclipse using Android SDK 16. THE PROBLEM: I have a VideoView element that is supposed to fill the entire screen in 480x800 (PORTRAIT ORIENTATION) and it plays fine, but will not orient to portrait. It sticks in landscape mode and the aspect ratio is skewed to fit that way. WHAT I HAVE ATTEMPTED: using android:screenOrientation="portrait" in manifest using android:orientation="vertical" in the container and the VideoView itself using setRequestedOrientation

Android VideoView not playing Portrait Orientation

独自空忆成欢 提交于 2020-01-03 07:07:04
问题 THE PLATFORM: Developing in Eclipse using Android SDK 16. THE PROBLEM: I have a VideoView element that is supposed to fill the entire screen in 480x800 (PORTRAIT ORIENTATION) and it plays fine, but will not orient to portrait. It sticks in landscape mode and the aspect ratio is skewed to fit that way. WHAT I HAVE ATTEMPTED: using android:screenOrientation="portrait" in manifest using android:orientation="vertical" in the container and the VideoView itself using setRequestedOrientation

Azimuth values changing when changing pitch

萝らか妹 提交于 2020-01-03 05:23:31
问题 I need the device's azimuth and roll values for an augmented reality app I'm working on. I'm getting the rotation matrix - from getRotationMatrix - using the accelerometer and the magnetic field. Since this is an AR app, I need to render objects that wouldn't change their positions in the real world (when seen through the camera) when the device is moved. The problem is, when physically rolling the device (in attempts to observe the variations in the pitch values), I can observe changes in

Azimuth values changing when changing pitch

为君一笑 提交于 2020-01-03 05:23:12
问题 I need the device's azimuth and roll values for an augmented reality app I'm working on. I'm getting the rotation matrix - from getRotationMatrix - using the accelerometer and the magnetic field. Since this is an AR app, I need to render objects that wouldn't change their positions in the real world (when seen through the camera) when the device is moved. The problem is, when physically rolling the device (in attempts to observe the variations in the pitch values), I can observe changes in

Landscape mode in Qt-Android application

梦想与她 提交于 2020-01-03 04:42:07
问题 I created a Qt/QML application and ported the application to Android. Now I'm able to run the application on the Android device. I want to fix the orientation mode to Landscape. I manually edited the AndroidManifest.xml and set the android:screenOrientation="unspecified" to android:screenOrientation="sensorLandscape" <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name=

App crashes when switching to landscape layout

假如想象 提交于 2020-01-03 02:50:11
问题 I am having trouble setting up landscape mode in my application. I have a /res folder that contains a layout folder and a layout-land folder layout -----main.xml layout-land -----main.xml My /layout-land/main.xml contains different UI elements than /layout/main.xml. How can I map each layout appropriately when the user has switched to landscape mode and vice versa? I am basically displaying a full screen ImageView when the user switches to landscape mode. The ImageView will download an image