Android Question Prevent orientation change?

mark35at

Well-Known Member
Licensed 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
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.
 

mark35at

Well-Known Member
Licensed 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.
 

MrJan

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