I'm building an application in android which uses the camera.I have built my own camera but the problem is that once I open my camera this way:
public void surfaceCreated(SurfaceHolder holder) {
Log.e(TAG, "surfaceCreated");
mCamera = Camera.open();
}
Both my preview and the picture taken are rotated 90 degrees when the phone is in portrait
mode, when the phone is turned in the landscape mode everything looks great.Does anyone know how could this be solved.
Thank you!