Search code examples
javaandroidandroid-orientation

Android - Force portrait view in landscape orientation


I'm working on an android Amazon Fire TV app, and for debug purposes, I'd like to force a portrait view orientation inside of the permanent landscape 16:9 display.

Is this possible? How would I go about doing this?

Thanks, Thomas


Solution

  • Add this in your manifest file inside your activity tag

    android:screenOrientation="portrait"