The easiest way to provide video-making capability in your application is to use a built-in intent to activate an existing activity. However, if you need more than what the default application can provide, you need to get your hands dirty and work with the API directly.
This chapter shows how to use both methods for making videos.
Using the Built-in Intent
If you choose to use the default Camera application for making video, you can activate the application with these three lines of code.
int requestCode = ...;
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
Basically, you need to create an Intent object by passing MediaStore.ACTION_VIDEO_CAPTURE to its constructor ...