You need to make a file (track) selection from a third-party application.
For example:

enter image description here enter image description here

To open the file selection dialog, I found that I need to use Intent, but I do not understand which category is better to use.

If you use the following code:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("audio/*"); Intent fileIntent = Intent.createChooser(intent,"Выбор файла"); startActivityForResult(intent,123); 

then the following window is displayed:
enter image description here

    1 answer 1

    Found the right ACTION to select a track, here’s the code that works for me:

     Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); intent.addCategory(Intent.CATEGORY_DEFAULT); Intent fileIntent = Intent.createChooser(intent,"Выбор файла"); startActivityForResult(fileIntent,123);