I am using the Storage Access Framework (SAF) :
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("image/*");
startActivityForResult(intent, 0);
I would like to know if there is an extra to enable the Show SD Card option, that user can see in the overflow menu.
Add
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
But be aware that this is not part of the official API. So there is a good chance this will stop working in future Android versions.
The relevant Framework code can be found here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.0_r1/com/android/documentsui/DocumentsActivity.java#255
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With