我尝试使用以下代码仅显示MP3文件:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("audio/mp3");
startActivityForResult(Intent.createChooser(intent, "Music File"), FIND_MUSIC);
但它最终也会列出 *.3gp 文件。如何只限制只显示 *.mp3 文件?
我尝试过使用 setType("mp3"),但此时 intent 找不到能够加载该文件的任何应用程序。