Back to Top

How to disable screen orientation change in Android?

To restrict screenorientation in Android

Here is the quick article about how to disable screen orientation change in Android.Well, recently in one application, I want to restrict application with landscape mode only.

User is restricted with portrait orientation so need not change an orientation of screen even if enabled.

So,first of all open your AndroidManifest.xml,find the activity declaration and place below line of code into < activity > tag.

After adding above line of code, you can see your whole application will be set to landscape

That’s it.I hope this tip will be helpful to you.

Post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share:
Share on Facebook0Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Comments (1)

  1. […] to move one step ahead for Android Phonegap application article Series.Last what we have seen is To restrict screen orientation in Android.In this article, I am going to explain how to setup SQLite Cordova for Android […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to use CONST keyword in PHP

Posted on 6 years ago

Bhumi

Disable updates for plugin in WordPress

Posted on 3 years ago

Bhumi

How To Use The HTML5 Notification API

Posted on 9 months ago

Bhumi

Event Delegation in jQuery

Posted on 2 years ago

Bhumi

The Readers’ Poll – March 2013

Posted on 4 years ago

Bhumi

How BlockChain and Ethereum works?

Updated 4 weeks ago

Bhumi

Facade implementation in Laravel

Updated 3 months ago

Bhumi

MySQL coalesce() function

Updated 18 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi