Answer the question
In order to leave comments, you need to log in
Getting Music Authors in Android
What methods can be used to get a list of all music authors (as in a standard player - a list of performers), when creating a player for Android?
PS I guess that it is implemented using MediaStore, but I just can’t figure it out with it ...
Answer the question
In order to leave comments, you need to log in
Cursor cursor = managedQuery(MediaStore.Audio.Artists,
new String[] {MediaStore.Audio.ArtistColumns.ARTIST},
null, null, null);
if (cursor.moveToFirst()) {
int artistIndex =
cursor.getColumnIndex(MediaStore.Audio.ArtistColumns.ARTIST);
do {
String artistName = cursor.getString(artistIndex);
} while (cursor.moveToNext());
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question