1

I know how to call gallery with only 1 type of data (images or video or audio), but not all together.

Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.TYPE.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, REQUEST_IMAGE_GALLERY);

android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI - images android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI - video android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI - audio

How can i call them "all at once"?

user3239600
  • 321
  • 1
  • 3
  • 13

1 Answers1

0

You just have to use setType() on intent object.

Intent intent= new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("video/*, image/*");
startActivityForResult(intent, RESULT_PICK);
AmeyaG
  • 176
  • 1
  • 1
  • 10