MediaRecorder video capturing in portrait mode
问题 I'm try to make custom video app. Iwork using settings in manifest 2.2 only (API 8). All goes well but I don't understand why portrait mode video does not differ from lanscape one. To make detection of device changed orientation I use this code within surfaceChanged() if (mCamera != null) { Camera.Parameters p = mCamera.getParameters(); try { mCamera.stopPreview(); } catch (Exception e) { // TODO: handle exception } int previewWidth = 0; int previewHeight = 0; if (mPreviewSize != null) {