DONT mark this as a duplicate before reading what I need.
I have seen many similar topics, but in none of them have I found a solution. I need the simplest: in my application, I have a "View Media" button. After clicking this button, I need to open (with the built-in Explorer) this directory - SD_CARD / my_folder , where the multimedia files are located (and I want to click any of them, and they should be opened in the default Media Player).
I used all the suggested answers on SO, for example:
Intent intent = new Intent(Intent.ACTION_VIEW); Uri mydir = Uri.parse("/sdcard/Recorder_Videos"); intent.setDataAndType(mydir, "*/*"); startActivity(intent);
but all they do: after clicking the button, the "Select File" menu opens: (When I canβt still play the media when I click)

source share