Java tutorial
//package com.java2s; import android.content.Intent; import android.provider.MediaStore; public class Main { /** * Utility method so you don't need to remember the MediaStore action. * @return */ public static Intent getCameraIntent() { return new Intent(MediaStore.ACTION_IMAGE_CAPTURE); } }