With android.hardware.Camera, in order to have the camera output appropriately track the device movement, we need to hook up an OrientationEventListener>
android.hardware.Camera
OrientationEventListener>
use this CaptureRequest JPEG_ORIENTATION to set your display orientation
captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, 90)