Retrieve the orientation of the touch screen

  1. Import the net.rim.device.api.system.Display class.
  2. Invoke net.rim.device.api.system.Display.getOrientation().
     int orientation = Display.getOrientation();

Was this information helpful? Send us your comments.