Launch your own camera app with the ability to capture video or image

I wrote an application before opening my own camera application to capture an image as follows:

Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

Or, for example, to capture video:

Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);

But is there a way to open my own camera application with the ability to capture video or image? I would like to open the image below, where the user can scroll access to the side menu and change their input type.

Image below

I tried the search but no results yet. I'm not sure if there is a way to do this without writing a custom camera implementation that I would like to avoid now.

, ? , (, onActivityResult)?

!

+4
1

, 2 , .. MediaStore.ACTION_IMAGE_CAPTURE MediaStore.ACTION_VIDEO_CAPTURE .

startActivityForResult (Intent intent, int requestCode, Bundle options). options , , , link1 link2.

, , .

+1

All Articles