如何从游标中获取Android中的专辑艺术家,而不是返回专辑中的第一个艺术家?
目前,我正在使用:如何从游标中获取Android中的专辑艺术家,而不是返回专辑中的第一个艺术家?,android,android-studio,Android,Android Studio,目前,我正在使用: int-albumArtistColumn=musicCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST); 然后,使用以下命令在do/while循环中访问它: do{ String thisAlbumArtist=musicCursor.getString(AlbumArtist列); } while(musicCursor.moveToNext()); 然而,这给了我专辑中的艺术家的名字,而不是专辑的制作人(专辑艺
int-albumArtistColumn=musicCursor.getColumnIndex(MediaStore.Audio.Albums.ARTIST);
然后,使用以下命令在do/while循环中访问它:
do{
String thisAlbumArtist=musicCursor.getString(AlbumArtist列);
}
while(musicCursor.moveToNext());
然而,这给了我专辑中的艺术家的名字,而不是专辑的制作人(专辑艺术家)。我做错什么了吗?谢谢