gpt4 book ai didi

安卓媒体商店 : How to efficiently retrieve all songs of a certain genre?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:57:48 26 4
gpt4 key购买 nike

我知道如何检索特定歌曲的流派(请参阅 getting the genres ),但我想检索特定流派的所有歌曲。由于“流派”似乎不是媒体项目的列之一,所以我不知道如何在单个查询中做到这一点,这与艺术家或专辑不同。有没有有效的方法?谢谢!

最佳答案

Uri uri = Audio.Genres.Members.getContentUri("external", genreID); 

String[] projection = new String[]{Audio.Media.TITLE, Audio.Media._ID};

Cursor cur = contentResolver.query(uri, projection, null, null, null);

关于安卓媒体商店 : How to efficiently retrieve all songs of a certain genre?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8512882/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com