Open MustafaDev-shaikh opened 3 years ago
Yes you can use that code to support multiple mime types
example for pdf and image files
String[] mimeTypes = {"image/","application/pdf"}; Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT, MediaStore.Images.Media.EXTERNAL_CONTENT_URI) .setType("image/|application/pdf") .addCategory(Intent.CATEGORY_OPENABLE) .putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
Can we set mime type to allow user to select PDF or image like that.???