Time for action – restricting the orientation of your app [Android]
Perform the following steps to restrict the orientation of your app on Android:
Create the layout for your app and build your project; this will create an
AndroidManifest.xml
file. This file can be found in thebuild/Android
directory under your project home. This file controls the Android build options of your file. The contents of this file are overwritten with the contents oftiapp.xml
during the Android build phase. The contents can be any Android customizations need to be made totiapp.xml
.Open
tiapp.xml
and look for the line<android xmlns:android="http://schemas.android.com/apk/res/android"/>
. Modify the file so that the line becomes:<android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> </manifest> </android>
We need to copy the existing customizations from
AndroidManifest.xml
so that they are preserved when the app is next built. OpenAndroidManifest.xml
.Copy...