-1

我如何在图库中打开特定文件夹。例如:文件夹名称是我的文件夹。当用户单击按钮时,它会直接在默认图库中打开我的文件夹。我怎样才能做到这一点?

Intent intent=new Intent(Intent.ACTION_VIEW);
Uri uri=Uri.fromFile(new File(Environment.getExternalStorageDirectory().toString()+"/video"));
intent.setType("video/mp4");
startActivityForResult(Intent.createChooser(openGallary, "Select Video"), 0);
4

1 回答 1

0

这个答案已经给出了两次。下次请先使用谷歌。abbas.aniefa 提供的链接是我在 Google 上搜索“ACTION_VIEW 特定画廊”时的第二次点击。这里也给出了答案。

于 2012-10-19T09:27:03.460 回答