Java tutorial
//package com.java2s; import android.content.Context; import android.database.Cursor; import android.net.Uri; public class Main { private static String getCoverPath(Context context, long albumId) { String path = null; Cursor cursor = context.getContentResolver().query( Uri.parse("content://media/external/audio/albums/" + albumId), new String[] { "album_art" }, null, null, null); if (cursor != null) { cursor.moveToNext(); path = cursor.getString(0); cursor.close(); } return path; } }