take Picture with Intent - Android android.graphics

Android examples for android.graphics:Picture

Description

take Picture with Intent

Demo Code

import android.content.Intent;
import android.net.Uri;
import android.provider.MediaStore;

public class Main {

  public static Intent takePicture(Uri uri) {
    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
    return intent;
  }/*from ww w  . j  a  v  a2 s.  com*/

}

Related Tutorials