static void setScreenOrientation(int orientation)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Parameter | Range | Description |
|---|---|---|
| orientation | 0 ... 3 | screen orientation |
Sets the screen orientation to one of the following modes:
| orientation | Description |
|---|---|
| ORIENTATION_LANDSCAPE | 0° |
| ORIENTATION_PORTRAIT | 90° |
| ORIENTATION_LANDSCAPE_UPSIDE_DOWN | 180° |
| ORIENTATION_PORTRAIT_UPSIDE_DOWN | 270° |
Note
Example
Control.setScreenOrientation(Control.ORIENTATION_PORTRAIT);
See also:
Copyright © demmel products gmbh. All rights reserved.