Is it possible somehow to startActivityForResult() to bring out where I want to select a video, or record it from a camera, or choose from a gallery? Now I can only open the window with the record

 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 7); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); startActivityForResult(intent, VIDEO_CAPTURE); 

    1 answer 1

    The idea (out of the box) is impossible, since these are different Intents - for shooting MediaStore.ACTION_VIDEO_CAPTURE , and for choosing either Intent.ACTION_GET_CONTENT or Intent.ACTION_PICK , well, except to separate a separate dialogue with their choice or rely on opportunities that are different vendors offer, when during the selection of pictures / video, you can immediately request and shoot.

    But not everything is so sad. There is an IntentManip , which allows you to combine several different Intent 's with the choice of them from the dialog

    • Thank you, great for my project)))) - Alexander Daniliev