keep a specific activity from landscape mode

dougc

Member
Licensed User
Longtime User
Hey all,
I have an app that has several activities modules and for one of these activities I would like to have it not "react" to a screen rotation (i.e. always stay in portrait mode) but for this activity only, the others should switch based on the screen orientation, is this possible?

thanks

dougc
 

NJDude

Expert
Licensed User
Longtime User
You need to add this line to the Manifest using the Manifest Editor:

Assuming your activity is named: myActivity
B4X:
SetActivityAttribute(myActivity, android:screenOrientation, "portrait")
 
Upvote 0
Top