(Information and examples taken from the DroidScript documentation)
The GetRotation method gets the current rotation of the device. It will return one of the following numeric values:- 0, 90, 180, 270
rot = app.GetRotation();
See also SetOrientation
function OnStart() { rot = app.GetRotation(); app.ShowPopup( rot ); }