【发布时间】:2012-05-25 06:11:55
【问题描述】:
我正在使用以下代码打开 android 默认图库应用。它会打开 sdcard 下的所有图像文件夹。如何只打开一个特定文件夹?
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
startActivityForResult(Intent.createChooser(intent, "Pick any photo"), SELECT_IMAGE_FROM_GALLERY_CONSTANT);
【问题讨论】:
-
在stackoverflow.com/questions/13418807/…上有更多关于这个问题的答案
标签: android android-intent android-gallery