1. 程式人生 > >安卓檔案管理器開啟指定目錄

安卓檔案管理器開啟指定目錄

File destDir = new File(getApplicationContext().getExternalCacheDir()+"//eml");
            Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
            intent.setDataAndType(Uri.fromFile(destDir), "*/*");
            intent.addCategory(Intent.CATEGORY_OPENABLE);
            startActivityForResult(intent, IMPORTEML);