TapanHP TapanHP - 11 days ago 4x
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.


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

android:screenOrientation="fullSensor" />