List of usage examples for android.hardware Camera takePicture
public final void takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback postview, PictureCallback jpeg)
From source file:com.nekomeshi312.whiteboardcorrection.WhiteBoardCorrectionActivity.java
private void takePic(Camera c) throws RuntimeException { if (mShutterStatus == SHUTTER_STATUS_TAKEPIC && mFocusStatus == FOCUS_STATUS_FOCUS_OK) { mShutterStatus = SHUTTER_STATUS_TAKEN; c.setPreviewCallback(null);/* w w w . j av a 2s . co m*/ c.takePicture(null, null, null, this); } }