如何從MediaStore獲取專輯封面?我嘗試這樣的:我如何從MediaStore獲取專輯封面?
String[] projectionImages = new String[]{MediaStore.Audio.Albums.ALBUM_ART, MediaStore.Audio.Albums.ALBUM_KEY};
Cursor c = contentResolver.query(MediaStore.Audio.Albums.INTERNAL_CONTENT_URI, projectionImages, null, null, null);
if(c != null){
c.moveToFirst();
Log.e(TAG, "am gasit " + c.getString(0) + " " + c.getString(1));
}
else{
Log.e(TAG, "No image");
}
但沒有工作..我只檢索每個條目爲空!
謝謝!
對您有幫助,在以下所有對我的作品? – Steve