I'm trying to use the file chooser of intent in my Android application. Running the application, the file chooser just opens in the last used folder of the device and not in the prespecified folder. How can i make the file chooser open in the prespecified folder in every case? Here my code:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath() + "prespecified/folder");
intent.setDataAndType(uri, "*/*");
startActivityForResult(Intent.createChooser(intent, "Choose file"), 123);