Preventing the rotation of the screen in Android

To prevent rotation of the screen in Android you can use one of two statements:
Android: screenOrientation = “portrait”
or
Android: screenOrientation = “landscape”
being included in the activity tag in the file AndroidManifest.xml.


Comments

One response to “Preventing the rotation of the screen in Android”

  1. Sei un grande, leggendo le tue pagine ho capito tantissime cose sulla programmazione in Android.

    Un caro saluto e di nuovo grazie mille.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.