Java tutorial
//package com.java2s; import android.content.Intent; import android.net.Uri; import android.provider.MediaStore; public class Main { public static Intent getTakePhotoIntent(Uri imageUri) { Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); return intent; } }