The SetOrientation method forces the screen to either "Portrait" or "Landscape" orientation.
After using this function rotating the phone/tablet will have no effect on the app's orientation. To unlock the orientation call the function again using the orientation "Default".
See also GetOrientation