How to set orientation in android manifest

In the manifest, set this for all your activities:

4 Mar 2017 To lock the screen orientation change of any screen (activity) of your this you need to add below line in your projects AndroidManifest.xml. 5 Jun 2016 To get an Android application to display in landscape mode only (to lock it in landscape mode), add this line to your Activity definition in the AndroidManifest.xml file: MainActivity" android:screenOrientation="landscape"  1. Question by juliancruz · Sep 10, 2013 at 05:04 PM · androidorientationmanifest Adding this to your manifest should force your app to landscape: