So far, I use this, which seem to work on my Android phone, but not in Windows:
SetOrientationAllowed( 1, 0, 0, 0 ) // allow only portrait
// portrait, inv-portrain, landscape, inv-landscape
while GetDeviceHeight() < GetDeviceWidth()
// while it is in landscape
endwhile
Global DeviceHeight as float
Global DeviceWidth as float
DeviceHeight = Round(640*GetDeviceHeight()/GetDeviceWidth())
DeviceWidth = 640
SetVirtualResolution( DeviceWidth, DeviceHeight )
Does anyone has any experience with how to deal with those wierd rotating Android screens?
I also tried SetOrientationAllowed( 1, 1, 0, 0 ) which I assumed would allow me to rotate the phone upside down and the app would magically rotate, but no dice.