Skip to content Skip to sidebar Skip to footer

Lock Device Landscape Orientation

I am working on a project and I need help how to lock landscape orientation on mobile devices. I have applied CSS media properties they let me change the visibility but I want onc

Solution 1:

Add android:screenOrientation="landscape" to the activity element in the AndroidManifest.xml. For example:

<activityandroid:name=".SomeActivity"android:label="@string/app_name"android:screenOrientation="landscape">

For more details: Android - disable landscape mode?

Post a Comment for "Lock Device Landscape Orientation"