Add
android:screenOrientation="portrait"
or
android:screenOrientation="landscape"
to the <activity>
element/s in
the manifest and you’re done.
More Related Contents:
- Screen orientation lock
- How to avoid restarting activity when orientation changes on Android
- Activity restart on rotation Android
- Application Skeleton to support multiple screens
- android: broadcast receiver for screen on and screen off
- Force “portrait” orientation mode
- How to get screen dimensions as pixels in Android
- How to determine device screen size category (small, normal, large, xlarge) using code?
- Strange behavior with android orientation sensor
- Android: Bitmaps loaded from gallery are rotated in ImageView
- Android: Rotate image in imageview by an angle
- Detecting when screen is locked
- Further understanding setRetainInstance(true)
- How to check an Android device is HDPI screen or MDPI screen?
- How to display Activity when the screen is locked?
- Rotate an YUV byte array on Android
- Developing a custom lock screen [duplicate]
- Turning on screen programmatically
- Android Two finger rotation
- Android accelerometer not working when screen is turned off
- Android: how to convert whole ImageView to Bitmap?
- Rotating Image on A canvas in android
- Detect 7 inch and 10 inch tablet programmatically
- android: turn off screen when close to face
- Creating multi-screen support app android
- Light up screen when notification received android
- Turn off screen programmatically when face is close the screen on Android
- Correct method for setKeepScreenOn / FLAG_KEEP_SCREEN_ON
- android unlock screen intent?
- Splash screen while loading a url in a webview in android app