From following .xml file I set xml to show TabHost but after i run it on emulator it show both both orientation. i want to set it to show only one orientation. How do i do?
In the AndroidMainfeast.xml file you will see
so Add after .MainActivity
android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation|screenSize"
android:configChanges="" help us to prevent onpause() and OnResume() method when we made rotation.