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.
Categories
One reply on “Preventing the rotation of the screen in Android”
Sei un grande, leggendo le tue pagine ho capito tantissime cose sulla programmazione in Android.
Un caro saluto e di nuovo grazie mille.