开发者

MediaStore.Audio.Albums._ID is distinct by song

开发者 https://www.devze.com 2023-02-02 21:28 出处:网络
String[] projections = { MediaStore.Audio.Media._ID, MediaStore.Audio.Media.TITLE, Media开发者_运维知识库Store.Audio.Media.ALBUM,
String[] projections = { MediaStore.Audio.Media._ID,
                MediaStore.Audio.Media.TITLE,
                Media开发者_运维知识库Store.Audio.Media.ALBUM,
                MediaStore.Audio.Albums._ID,
                MediaStore.Audio.Media.ARTIST,
                MediaStore.Audio.Media.TRACK,
                MediaStore.Audio.Media.DATA };

Shouldn't MediaStore.Audio.Media._ID by the id field for the song, and MediaStore.Audio.Albums._ID be the id field for the album? What I want to see is a common ID field for all songs on an album. What is the correct field to use?


MediaStore.Audio.Media.ALBUM_KEY is unique per album

0

精彩评论

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