With the following code shows a preview of the camera vertically and it\'s works.. BUT!! I get a photo in landscape! :(
How I can build it vertically? I\'ve the prev
Camera.Parameters param;
param = camera.getParameters();
Display display = ((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
if(display.getRotation() == Surface.ROTATION_0)
{
camera.setDisplayOrientation(90);
param.setRotation(90);
}
if(display.getRotation() == Surface.ROTATION_270)
{
camera.setDisplayOrientation(180);
param.setRotation(180);
}
camera.setParameters(param);
camera.takePicture(shutterCallback, rawCallback, jpegCallback);