Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要实现下一个功能。我想将音频 mp3 文件存储在根目录(或其他地方),然后将其取回并通过电子邮件(如附件)发送。我设置了如下输出文件:
recorder.setOutputFile(getFilesDir().getPath() + fileName + ".mp3");
但我不知道如何找回它,甚至只是看到它。请问你能帮帮我吗?
File dir = new File(path); String[] files = dir.list();
path = 您的存储路径。