I try to click on a menu item with the help of this method to open a specific folder that the app creates in internal memory when .txt file is recorded, but this is not possible even though the folder exists. Can you help me when I click the menu item to open MyFolder
, please.
switch (item.getItemId()) {
case R.id.openFolder:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()
+ "/MyFolder/");
intent.setDataAndType(uri, "text/csv");
startActivity(Intent.createChooser(intent, "Open folder"));
break;
}