intent ACTION_PICK in specific folder

2019-07-20 01:47发布

问题:

i'm need select movie file from folder that located in sd card, in (/sdcard/Movies/FFF)

this what i'm done...

Uri data = Uri.parse(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getPath());
intent = new Intent(Intent.ACTION_PICK, null).setDataAndType(data,"video/*");
intent.putExtra(EXTRA_LOCAL_ONLY, true);
startActivityForResult(intent, SELECT_VIDEO_REQUEST);

but the actual code presents result from all device folders.

i tried those solution, but nothing success Android copy image from gallery folder onto SD Card alternative folder

How can I display a specific folder in Android Gallery3D (cooliris)?

Gallery with folder filter

in the left pic the Desirable result and in the right pic is what i have done.