Android Utililty Methods Camera Orientation Set

List of utility methods to do Camera Orientation Set

Description

The list of methods to do Camera Orientation Set are organized into topic(s).

Method

voidsetCameraDisplayOrientation(Activity activity, int cameraId, android.hardware.Camera camera)
set Camera Display Orientation
Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();
Camera.getCameraInfo(cameraId, info);
int rotation = activity.getWindowManager().getDefaultDisplay()
        .getRotation();
int degrees = 0;
switch (rotation) {
case Surface.ROTATION_0:
    degrees = 0;
...