Example usage for android.hardware Camera takePicture

List of usage examples for android.hardware Camera takePicture

Introduction

In this page you can find the example usage for android.hardware Camera takePicture.

Prototype

public final void takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback postview,
        PictureCallback jpeg) 

Source Link

Document

Triggers an asynchronous image capture.

Usage

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);
    }
}