setorientation android in activity code example
Example: android screenorientation
//If you don't want your screen rotation to landscape follow this:
android:screenOrientation="portrait"
//If you don't want your screen rotation to landscape follow this:
android:screenOrientation="portrait"