下面列出了android.provider.MediaStore.Audio.Albums#ARTIST 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
/**
* @Description 得到原图
*/
@SuppressWarnings("unused")
private void getAlbum() {
String[] projection = {
Albums._ID, Albums.ALBUM, Albums.ALBUM_ART,
Albums.ALBUM_KEY, Albums.ARTIST, Albums.NUMBER_OF_SONGS
};
Cursor cursor = null;
try {
cursor = contentResolver.query(Albums.EXTERNAL_CONTENT_URI,
projection, null, null, null);
getAlbumColumnData(cursor);
} catch (Exception e) {
logger.e(e.getMessage());
} finally {
if (null != cursor) {
cursor.close();
}
}
}
/**
* �õ�ԭͼ
*/
void getAlbum() {
String[] projection = { Albums._ID, Albums.ALBUM, Albums.ALBUM_ART,
Albums.ALBUM_KEY, Albums.ARTIST, Albums.NUMBER_OF_SONGS };
Cursor cursor = cr.query(Albums.EXTERNAL_CONTENT_URI, projection, null,
null, null);
getAlbumColumnData(cursor);
}
void getAlbum() {
String[] projection = { Albums._ID, Albums.ALBUM, Albums.ALBUM_ART,
Albums.ALBUM_KEY, Albums.ARTIST, Albums.NUMBER_OF_SONGS };
Cursor cursor = cr.query(Albums.EXTERNAL_CONTENT_URI, projection, null,
null, null);
getAlbumColumnData(cursor);
}
/**
* 得到原图
*/
void getAlbum() {
String[] projection = { Albums._ID, Albums.ALBUM, Albums.ALBUM_ART,
Albums.ALBUM_KEY, Albums.ARTIST, Albums.NUMBER_OF_SONGS };
Cursor cursor = cr.query(Albums.EXTERNAL_CONTENT_URI, projection, null,
null, null);
getAlbumColumnData(cursor);
}