开发者

Retrieve song paths from playlist provider?

开发者 https://www.devze.com 2023-03-02 13:25 出处:网络
Is it possible to retrieve SDcard paths for each song in a playlist, using the MediaStore.Playlist providers?The closest I see are values for the name of the song... is there any data member which inc

Is it possible to retrieve SDcard paths for each song in a playlist, using the MediaStore.Playlist providers? The closest I see are values for the name of the song... is there any data member which includes the开发者_如何转开发 full path?

(I'm attempting to create an app which writes Android's internal playlists to physical files on the SDcard.)


Found it. Evidently it's the DATA member.

I originally interpreted DATA as an abstract representation of the actual data file. However, the DATA member of the Playlists provider actually stores the exact filesystem path, and now I've answered my own question! :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号