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