android: Take camera picture without “save” / “delete” confirmation

前端 未结 6 1125
醉酒成梦
醉酒成梦 2020-12-01 11:26

I want to display an image taken from the camera in an ImageView using

Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
         


        
6条回答
  •  悲&欢浪女
    2020-12-01 11:33

    If your image is rotated, you can use this:

    mCamera.setDisplayOrientation(90);
    

    after

    mCamera.startPreview();
    

提交回复
热议问题