I'm trying to make an app with Android Studio that can select a file in SD card and get its path, like an OpenFileDialog
, I've tried this:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("file/*");
startActivityForResult(intent, PICKFILE_REQUEST_CODE);
However, it does not work, how can I do it ?