Android Question Prevent orientation change?

Mark Read

Well-Known Member
Licensed User
Longtime User
I have an app which can be started in landscape or portrait mode. Once the app is started, I want to prevent an orientation change. Is this possible? Many thanks.
 

tufanv

Expert
Licensed User
Longtime User
at the code screen at most top, you can see project attiributes and supported orientations. If you want just portrait for example write only portrait and it will not change to anything.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
@tufanv: Thanks for this. I know about this but my app can be started in either mode, only a change is not allowed during running as this will interfere with the calculations.
 
Upvote 0

MrJan

New Member
Licensed User
Longtime User
mark35at: Did you resolve the problem? I've faced similar situation: how temporary prevent orientation change until some process is finished.
 
Last edited:
Upvote 0
Top