修改檔案:CameraConfigurationManager.java
- void initFromCameraParameters(Camera camera) 注解下列幾行:// if (width < height) {// Log.i(TAG, "Display reports portrait orientation; assuming this is incorrect");// int temp = width;// width = height;// height = temp;// }
- void setDesiredCameraParameters(Camera camera, boolean safeMode)
在 camera.setParameters(parameters) 後面加上:if (screenResolution.x < screenResolution.y)camera.setDisplayOrientation(90); - 收工。
0 件のコメント:
コメントを投稿