Code example for Camera.PreviewCallback

Methods: onPreviewFrame

0
    } 
 
    public void onPreviewFrame(byte[] arg0, Camera camera) {
	if (callback != null && isFocused) {
	    if (frameCounter % 2 == 0) {
		callback.onPreviewFrame(arg0, camera);
		if (frameCounter > 2 * 100) {
		    frameCounter = 0;
		} 
 
	    } 
 
	    frameCounter++;
	} 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE