The Android Arsenal – File/Directory Choosers

[ ]

Unicorn File Picker is a library designed to package a powerful file selector for android. You can:

  • Start the file picker activity from any activity or fragment
  • Select single or multiple files
  • Use as a Directory Picker
  • Filter out files you want to display
  • Add custom theme or use default theme options (Light & Dracula)
  • And much more which you have to try out for yourself
Unicorn Dracula Unicorn Default Custom Theme



repositories {
    maven { url ‘’ }

dependencies {
    implementation 'com.github.abhishekti7:UnicornFilePicker:$latest_version'

How do I use Unicorn File Picker?


The library requires two permissions:

  • android.permission.READ_EXTERNAL_STORAGE
  • android.permission.WRITE_EXTERNAL_STORAGE

If you are targeting Android 6.0+, you need to handle runtime permission request before next step.

Also, don’t forget to add requestlegacyexternalstorage=true for Android 10.

Simple usage snippet


UnicornFilePicker from current Activity or Fragment:UnicornFilePicker.from(MainActivity.this) .addConfigBuilder() .selectMultipleFiles(false) .showOnlyDirectory(true) .setRootDirectory(Environment.getExternalStorageDirectory().getAbsolutePath()) .showHiddenFiles(false) .setFilters(newString[]{"pdf", "png", "jpg", "jpeg"}) .addItemDivider(true) .theme( .build() .forResult(Constants.REQ_UNICORN_FILE);

Enable registration in settings - general
Compare items
  • Total (0)