(1) Force your application to be in landscape by using the following in the manifest.xml
(2) Alter the camera parameters to account for the orientation differences:
Camera.Parameters parameters = camera.getParameters();
parameters.set("orientation", "portrait");
camera.setParameters(parameters);
NOTE: If your application is not of fixed-orientation, you will have to detect the orientation of the application and adjust the 2nd parameter string accordingly between "portrait" and "landscape"
No comments:
Post a Comment