The screenOrientation is the attribute of activity element. The orientation of android activity can be portrait, landscape, sensor, unspecified etc. You need to define it in the AndroidManifest.xml file. For example: <activity android:name="com.example.screenorientation.MainActivity" android:label="@string/app_name" android:screenOrientation="landscape" > The common values for screenOrientation attribute are as follows: Value Description unspecified It is …
Read More »