Android Utililty Methods Camera Orientation Set

List of utility methods to do Camera Orientation Set


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


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()
int degrees = 0;
switch (rotation) {
case Surface.ROTATION_0:
    degrees = 0;