how to get multiple selected files path for my activity-android

1.2k Views Asked by At

So far I know how to get a file path by calling fileChooser which always returns one particular file path, but now I want a batch selection returning with multiple file paths(5 file in my case). Is there any way to that?

Plus, is there any way that from Gallery I can share multiple pic with my app??

thanks in advance

1

There are 1 best solutions below

5
On

API Level 18 sneaked in a new standard for ACTION_GET_CONTENT that addresses a long-standing request: multiple selections. Check following links for details.

http://commonsware.com/blog/2013/10/22/action_get_content-support-extra_allow_multiple-please.html

Select multiple files with Intent.ACTION_GET_CONTENT