Code example for Display

Methods: getRotation

0
		} 
		return optimalSize;
	} 
 
	public static int determineDisplayOrientation(Display display) {
		int rotation = display.getRotation();
		int degrees = 0;
 
		switch (rotation) {
		case Surface.ROTATION_0:
			degrees = 0;
			break; 
 
		case Surface.ROTATION_90:
			degrees = 90;
			break; 
 
		case Surface.ROTATION_180:
			degrees = 180;
			break;