Android/Camera

Camera camera; public void surfaceCreated(SurfaceHolder holder) { camera = Camera.open;

Camera.Parameters parameters = camera.getParameters; parameters.set("some parameter", "some value"); // or parameters.set("some parameter", some_int); camera.setParameters(parameters);

/ This is an undocumented although widely known feature parameters.set("orientation", "portrait"); // For Android 2.2 and above //camera.setDisplayOrientation(90); // Uncomment for Android 2.0 and above //parameters.setRotation(90);