0 votes
in Android by
Android Screen Orientation Example

1 Answer

0 votes
by
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.

Syntax:

<activity android:name="package_name.Your_ActivityName"  

      android:screenOrientation="orirntation_type">  

</activity>
...