How can i stop orientation change in android table? -
Hi, I'm developing Android apps in the tablet version. Here I am facing problems with orientation so I want to make my application only in portrait mode. For this I have used a feature like snippet below for every activity in my app.
Used to be. But with the scenario, it is not good to test the application with the tablet physical condition. This is going to the picture for the first time again.
I made the program an activity in the picture but there is no effect. Please give me some help here. My programmatic orientation is fixed.
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); Post text "itemprop =" text "> Try it out ...
& activity activity: label = "@ string / app_name" Android: name = "abc.xyz Dd.MainScreen" Android: ScreenErmentation = "Portrait" Android: configChanges = "KeyboardHidden | Orientation "> This will prevent it from being converted to landscape mode by adding it to the manifest file.
Comments
Post a Comment