This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PictureCallback jpegCallback=new PictureCallback(){ | |
@Override | |
public void onPictureTaken(byte[] data, Camera camera) { | |
if(data !=null){ | |
/* I use Galaxy S3 and Supported PictureSize was width = 3264px, height = 2448px, prop = 1.3333334 | |
Because inSampleSize should be integer, I set maxSize a fraction of srcSize(Supported Picturesize) | |
*/ | |
int maxSize = 816; | |
mCamera.stopPreview(); |