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 文件,getFilesDir() 请告诉我
getFilesDir()
您正在寻找getFilesDir(),因为它允许编辑您的文件并且它是您的应用程序的本地文件。但是,在卸载应用程序时,该目录将被删除。
如果您不需要修改文件,该res/raw文件夹可以很好地工作。
res/raw