thanks to calling the camera device

static final int REQUEST_VIDEO_CAPTURE = 1; private void dispatchTakeVideoIntent() { Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); if (takeVideoIntent.resolveActivity(getActivity().getPackageManager()) != null) { startActivityForResult(takeVideoIntent, REQUEST_VIDEO_CAPTURE); } } 

I can record video. The video is recorded in the camera album, but I need the video recorded in my album. For example: I made a video, and the program itself creates an album, let's say the name is a surname, and it stores my video there. HOW WILL THIS REALIZE? FOR EARLY THANKS FOR HELP

    1 answer 1

     String path = Environment.getExternalStorageDirectory() + "/appsalbum/example.jpg"; File file = new File(path); Uri outputFileUri = Uri.fromFile( file ); Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE ); intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri ); startActivityForResult( intent, CAPTURE_IMAGE ); 
    • nothing has changed, does not create an album - fcbarcafc