Hi, in my android app i need to force all my app to stay in landscape how can i do this?
2 Answers
Accepted Answer
Hello, Just follow this steps and get it done:
One option to get Splash screen in landscape mode is goto android project folder ---> build ---- > android ------> here you can see AndroidManifest.xml file .
Copy AndroidMenifest.xml file text and put in AndroidManifest.custom.xml file in same folder where AndroidManifest.xml file is kept and in activity tag write android:screenOrientation="landscape" for landscape mode and replace android:configChanges="keyboardHidden|orientation" to android:configChanges="keyboardHidden" in whole file in each activity .
Example
<activity> android:configChanges="keyboardHidden" android:screenOrientation="landscape" </activity>This will solve your problem.
Hi Raffaele, In android if you want that your application run only in a single mode(landscape in your case), then you need to place a custom android menifest file with your android menifest xml file and replace orientation to landscape at all places.for more details you can refer this link. I hope this will help you.
Your Answer
Think you can help? Login to answer this question!