mobilejazz / coltrane

An android file picker
Apache License 2.0
25 stars 2 forks source link

How to use it as a folder picker? #9

Open Shashank066 opened 8 years ago

Shashank066 commented 8 years ago

I want to use it as a folder picker and get persistible uri permission grants to it, similiar to what storage access framework provides with Intent.ACTION_OPEN_DOCUMENT_TREE. e.g.

public static void takePersistiblePermission(Activity context,int additionalCode) { Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE); intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION); context.startActivityForResult(intent, SAF_REQUEST_CODE+additionalCode); }

If while opening NativeUI, I set the MIME type to "resource/folder" it shows folders only but I can't choose it. Thanks for the wonderful library.

aldoborrero commented 8 years ago

@Shashank066 Thanks for using the library!

Right now I want to notice that the previous maintainer of the library has left and right now I'm charge of this part.

We're doing some refactoring things for our organisation.

After that I'll become the new project maintainer of this project (among others). I'm planning to update and refactor a couple of things for coltrane.

So let me tag this issue as bug and as soon as I work on this I'll contact you with a response to the issue!