I want to choose only pdf, xlsx and txt file from storage but intent.setType can do only one file(eg.txt file only (or) pdf file only). Is it possible to get all three files
The simple solution is
Intent gallery=new Intent(); gallery.setType("application/*"); gallery.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(gallery,pick);
Note: pick is int variable.