John Kiran John Kiran - 1 year ago 58
Android Question

How to restrict Android application from changin its landascape mode?

I am in trouble with Portrait and Landscape modes of my android application. So, I want to know how to restrict my application in anyone mode only. Thanks in advance to any reply with suitable answer and problem solving solution.

Answer Source

You can define your screen Orientation in your manifest file, activity tag

android:screenOrientation="landscape"

for more detail refer here.