John Kiran John Kiran - 6 months ago 12
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

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

android:screenOrientation="landscape"

for more detail refer here.

Comments