在卸载我的应用程序时,所有通过该应用程序下载的歌曲均被删除。
Apparently you are saving your files in your apps private external storage. It will be deleted when uninstalling your app. See: https://developer.android.com/training/basics/data-storage/files.html#WriteExternalStorage
Use
Environment.getExternalStorageDirectory()
to get the primary external storage location and create a directory for eg your downloads and save them there.
https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.