How to save images with correct orientation using CAMERA2
问题 Here is my camera fragment, in which I am opening the camera using TextureView . The camera is capturing the image in correct orientation but the captured image is not getting saved in correct orientation... public class Camera2BasicFragment extends Fragment implements View.OnClickListener, FragmentCompat.OnRequestPermissionsResultCallback { private static final SparseIntArray ORIENTATIONS = new SparseIntArray(); private static final int REQUEST_CAMERA_PERMISSION = 1; private static final