how to restrict orientation in android code example
Example 1: manifest orientation portrait
{
"orientation": "portrait"
}
Example 2: portrait in manifest
android:screenOrientation="portrait"
{
"orientation": "portrait"
}
android:screenOrientation="portrait"