Android camera/picture orientation issues with Samsung Galaxy S3, S4, S5

后端 未结 4 821
你的背包
你的背包 2021-01-04 11:42

I am developing a camera application for Android API 16 to 21 which main and only purpose is to take portrait photo. I am able to take picture with several

4条回答
  •  伪装坚强ぢ
    2021-01-04 12:18

    You can try to use Camera parameters to fix rotation issue.

    Camera.Parameters parameters = camera.getParameters();
    parameters.set("orientation", "portrait");
    parameters.setRotation(90);
    camera.setParameters(parameters);
    

提交回复
热议问题