Menu

Tree [3cf3bc] master /
 History

HTTPS access


File Date Author Commit
 .idea 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 app 2017-06-01 Kashif Anwaar Kashif Anwaar [f0f29a] Added screenshots to show in README
 folderpicker 2017-05-31 Kashif Anwaar Kashif Anwaar [95890e] changed gradle to release new version
 gradle 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 screenshots 2017-06-01 Kashif Anwaar Kashif Anwaar [f0f29a] Added screenshots to show in README
 .gitignore 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 LICENSE 2017-05-26 Kashif Anwaar Kashif Anwaar [d3730c] Added Apache License
 README.md 2017-06-02 Kashif Anwaar Kashif Anwaar [3cf3bc] Added demo in README
 build.gradle 2017-05-25 Kashif Anwaar Kashif Anwaar [e402e0] prepared to release library
 gradle.properties 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 gradlew 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 gradlew.bat 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit
 settings.gradle 2017-05-25 Kashif Anwaar Kashif Anwaar [a0217a] Initial commit

Read Me

android-folder-picker-library

Demo
Bintray
License

A light-weight android library that can be quickly integrated into any app to let users choose folder, also files (but esp built for folders).

Example Uses

  • To let users choose folder for saving files
  • To let users choose backup folder
  • To let users pick files to upload
    etc...

Screenshots

Preview Preview Preview
Can pick folders Can create folder Can also pick file

Installation

For your convenience, it is available on jCenter, So just add this in your app dependencies:

    compile 'lib.kashif:folderpicker:2.2'

Usage

To pick folder

        Intent intent = new Intent(this, FolderPicker.class);
        startActivityForResult(intent, FILEPICKER_CODE);        

```java

    protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
      if (requestCode == FILEPICKER_CODE && resultCode == Activity.RESULT_OK) {

          String folderLocation = intent.getExtras().getString("data");
          Log.i( "folderLocation", folderLocation );

      }
    }

```

Options

```java

    //To show a custom title
    intent.putExtra("title", "Select file to upload");

    //To begin from a selected folder instead of sd card's root folder. Example : Pictures directory
    intent.putExtra("location", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getAbsolutePath());

    //To pick files
    intent.putExtra("pickFiles", true);

```

Click to see an example working code

MongoDB Logo MongoDB