singhangadin / android-filepicker

Selecting directories/files made a lot easier.
Apache License 2.0
651 stars 139 forks source link

Choosing directories #84

Closed dbognar closed 6 years ago

dbognar commented 6 years ago

Thank you for your great work on this file picker, this is the best I've seen yet.

My issue: I have an app specific export directory and I have my offset right there, but the user can not export the file directly there, just if he gets back, search for that particular directory, then check it. I think it would be a great addition, if you can configure directory selection to a mode, where the select button is always on, and when you touch it, it will give you back the actual path.

(or a more simple approach: make select available, when there are no more sub-directories in your directory list, and give back the actual path)

Also I think it would be useful to see the files in directory selection mode. Because when I'm exporting a file I would like to see what kind of files are there in the selected directory.

Skyost commented 6 years ago

:+1:

npes87184 commented 6 years ago

Hi, @dbognar

Reference to issue #44 And there is a patch in my repo which can support it.

Thanks.

dbognar commented 6 years ago

Thank you! I'm new on GitHub, how can i implement it? I'm currently using this Filepicker as a compile dependency. (maven central)

npes87184 commented 6 years ago

Hi, @dbognar

There is a pre-built aar in my repo, and you can follow this file to use.

Shortly, it should create libs directory to hold aar and add these two lines in build.gradle

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation(name: 'filepicker-release', ext: 'aar')

Or aar can be built by yourself, which is via git clone the project and import it to your Android studio. After aar is built, you can follow the same steps as above to use aar.

Thanks.

dbognar commented 6 years ago

Thank you, everything works fine. ;)