TapanHP TapanHP - 2 years ago 106
Android Question

Is it possible to change orientation of device when default device rotation is off?

I am using an application for meditation on daily basis, today i was surprised by it because when i rotate screen, App goes to landscape mode, Although the Automatic rotation was off from my settings, How it can happen?

Is there something like Force device to change orientation?

And If default device rotation is off then how app can know that device orientation is changed?

I double checked my phones settings of Auto-Rotation and they were off.I am using Kitkat device.

Answer Source

In AndroidManifest.xml file set activity tag, screenOrientation attribute to fullSensor like this:

android:screenOrientation="fullSensor" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download