If I start my app in lanscape mode, then splash screen is landscape and then changed to portrait.How to set the portrait orientation always for the start up?
2 Answers
Hello Dinesh,
See this LINK
Hello, Just follow this steps and get it done:
One option to get Splash screen in portrait 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="portrait" for portrait mode and replace android:configChanges="keyboardHidden|orientation" to android:configChanges="keyboardHidden" in whole file in each activity .
Example
<activity> android:configChanges="keyboardHidden" android:screenOrientation="portrait" </activity>This will solve your problem.
Your Answer
Think you can help? Login to answer this question!