Add ~android:screenOrientation="fullSensor"~ to the activity

AndroidManifest.xml
activity android:name=".MainActivity"
            android:screenOrientation="fullSensor"