0
的影像儲存在/storage/emulated/0/policeSuites/
顯示的圖像僅
想從默認庫policeSuites
文件夾中查看所有圖像。
public void openFolder() {
File storageDir = Environment.getExternalStoragePublicDirectory("/Police photo suits");
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(String.valueOf(storageDir));
intent.setDataAndType(uri, "image/*");
startActivity(Intent.createChooser(intent, "Open folder"));
}