I'm trying to open my downloaded files on a specific path (my download folder in the app). Unfortunately, I do not know how to implement this method.I found this way by searching the Internet.
... } else if (id == R.id.nav_MyDownloads) {
intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse("storage/sdcard/pdfs"); // a directory
intent.setDataAndType(uri, "*/*");
startActivity(Intent.createChooser(intent, "Open folder"));;
}...
But when I use intent
, I see the path of the recent files instead of the path I introduce, please guide me. thank you