It is becoming cliché, but as previously discussed, often the quickest and easiest way to perform some function on Android is to leverage an existing application that can be triggered by an intent from our application. Using the built-in Camera application to record video, triggered by an intent, is no exception.
android.provider.MediaStore class is a constant named
ACTION_VIDEO_CAPTURE, which contains the string
“android.media.action. VIDEO_CAPTURE”. This string is registered by the Camera application as an intent filter and will therefore be activated by an intent sent via the
Context.startActivityForResult methods. Other applications may also register the same string, which ...