When using the Camera app in Android, how can I return the whole image instead of just the thumbnail?

前端 未结 2 1766
无人及你
无人及你 2020-12-20 04:52

I am making an app that sends a picture taken from the Camera app however the image it returns seems to be only a thumbnail how can I get it to turn the whole image?

2条回答
  •  孤城傲影
    2020-12-20 05:45

    Try using the implementation shown here

    Specifically:

    Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() {
    
        public void onPictureTaken(byte[] imageData, Camera c) {
    
        }
    
    };
    

提交回复
热议问题