Android examples for android.media:Video
capture Video
import android.app.Activity; import android.content.Context; import android.content.Intent; import android.provider.MediaStore; public class Main { public static int REQUEST_CAPTURE_VIDEO = 3; public static void captureVideo(Context context) { Intent intent2 = new Intent(); intent2.setAction(MediaStore.ACTION_VIDEO_CAPTURE); intent2.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); ((Activity) context).startActivityForResult(intent2, REQUEST_CAPTURE_VIDEO); }//from w w w . j av a 2 s . c o m }