I need know the real difference of screen orientation
userPortrait
and portrait
. When to use what?
When this?
android:screenOrientation="portrait"
When this?
android:screenOrientation="userPortrait"
Try this: android:screenOrientation="fullSensor" The orientation is determined by the device orientation sensor. The orientation of the display depends on how the user is holding the device. This should be what you want. Also for more options check out this link-Activity Element.
If there is a scenario where you need your entire application to be in portrait mode or landscape mode or one of the Activity should be in portrait mode and all the other activities should be set at auto screen orientation, then here this article makes you do that in simple steps.
"portrait" Portrait orientation (the display is taller than it is wide).
and
"userPortrait"
Portrait orientation, but can be either normal or reverse portrait based on the device sensor and the user's sensor preference. If the user has locked sensor-based rotation, this behaves the same as portrait, otherwise it behaves the same as sensorPortrait. Added in API level 18.
check http://developer.android.com/guide/topics/manifest/activity-element.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With