Skip to content

Pre Defined Chooser Guide

Ashish Shekar edited this page Dec 17, 2016 · 2 revisions

What is this ?

Often you want the users just to choose between Internal or SDCard storage locations and you want to maintain the same path structure for both these storages. Let's see how we can do that.

Builder from the Getting-Started page

StorageChooserBuilder.Builder builder = new StorageChooserBuilder.Builder()
.withActivity(MainActivity.this)
.withFragmentManager(getSupportFragmentManager())
.withMemoryBar(true)
.build();


builder.show();

Adding the below function will produce a log output of your predefined path. Pre defined path is something that you as a developer define and not the user to save and operate on your app/working directory.

  • withPredefinedPath(String path)

-> Here if we pass "/Download/Codekidlabs" , it will be appended to the internal/SdCard storage directory when user selects their storage.