2021年5月5日星期三

Android 11 MediaStore: Can files in internal storage be added to the Media Store for other apps to know about? Say mp3s

Is it possible to store files in arbitrary locations in internal storage using new File(context.getFilesDir() + "/some_sub_folder","myfile.mp3") and have these files added to the MediaStore database so that other apps can access them? even though they are on my app's internal storage?

I'm having way too many issues trying to add files using context.getExternalFilesDir(null) because the MediaStore there wants me to use specific paths, and when I try to retrieve the files with the mediastore content:// uri, there's no way that it can find the files, always get file not found error.

https://stackoverflow.com/questions/67411288/android-11-mediastore-can-files-in-internal-storage-be-added-to-the-media-store May 06, 2021 at 11:06AM

没有评论:

发表评论