3

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.

enter image description here

Community
  • 1
  • 1
idan
  • 1,508
  • 5
  • 29
  • 60
  • try using `Uri data = Uri.parse(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getPath()); intent = new Intent(Intent. ACTION_VIEW).setDataAndType(data,"video/*");` – Ashwini Bhangi Apr 30 '13 at 18:29
  • thanks, but it's doesnt work you suggest to replace ACTION_PICK with ACTION_VIEW. in this result appear "Unsupported File Type" I believe it's expects to receive a file not folder, but I'm not sure – idan Apr 30 '13 at 19:29

0 Answers0