Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cursor cursor = getActivity().managedQuery(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,
- new String[] {MediaStore.Audio.Albums._ID, MediaStore.Audio.Albums.ALBUM_ART},
- MediaStore.Audio.Albums._ID+ "=?",
- new String[] {String.valueOf(albumId)},
- null);
- if (cursor.moveToFirst()) {
- String path = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Albums.ALBUM_ART));
- // do whatever you need to do
- Bitmap albumArt = BitmapFactory.decodeFile(String path);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement