Android 12 MediaStore не может читать аудиофайлы с SD-карты на определенном устройствеJAVA

Программисты JAVA общаются здесь
Ответить
Гость
 Android 12 MediaStore не может читать аудиофайлы с SD-карты на определенном устройстве

Сообщение Гость »


I am currently developing an MP3 player app, but I'm encountering a problem with reading music files from the SD card through MediaStore on a specific device. To verify if the SD card is recognized properly, I used SDCardEventReceiver, and it confirmed that the SD card detection and path display are functioning correctly.

Apart from the problematic device, the app operates smoothly on the Galaxy A34 and an Android Virtual Device (AVD), successfully reading and playing music files. This indicates that the issue is isolated to a particular device.

I attempted to use MediaStore.Audio.Media.EXTERNAL_CONTENT_URI to load content from the external storage, but it failed to retrieve any content.

Read permissions have been correctly set on all test devices, and the operating system in use is Android 12. I have yet to identify the specific cause of the problem and am seeking assistance in finding a solution.

Android12 Device.


Источник: https://stackoverflow.com/questions/781 ... ecific-dev
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»