![]() ![]() The question is - how to load images of a song, not an album, in image loader? I have searched everything, but the only option to extract the image is only through MediaMetadataRetriever. In the first method I pull out the picture of the song itself, in the second method I pull out the picture of the album. ![]() The problem turned out to be something else. Song.getAlbumId()).toString(), playlistPhoto,Įverything works perfectly - it loads quickly and recyclerview slides smoothly. All Sizes Large 24MP Medium 12MP Small 4MP Color. ![]() All Orientations Horizontal Vertical Square Size. Thousands of new images every day Completely Free to Use High-quality videos and images from Pexels. displayImage(ContentUris.withAppendedId(Uri.parse("content://media/external/audio/albumart"), Download and use 100,000+ studio background stock photos for free. Then I decided to use image loader: ImageLoader.getInstance().init(ImageLoaderConfiguration.createDefault(getActivity())) As the leading youth entertainment brand, mtv is the best place to watch the networks original series, see the latest music videos and stay up to date on. I tried adding diskcachestrategy still doesn't help. Glide.with(this).asBitmap().load(R.drawable.icon).into(playlistPhoto) Glide.with(this).load(bitmap).into(playlistPhoto) MediaMetadataRetriever retriever = new MediaMetadataRetriever() īyte art = retriever.getEmbeddedPicture() īitmap bitmap = codeByteArray(art, 0, art.length) At first I loaded the images in this way Uri uri = Uri.parse(song.getPath()) I have an adapter that downloads pictures from music files. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |