I get album arts by getting the album ids from the MediaStore column ALBUM_ID and then load them in Glide like this.
This code works fine but i would like to know what the hardcoded sArtworkUri with value content://media/external/audio/albumart
comes from?
Is this a reliable way of loading these album arts and is this value the same across all Android devices?
Code
Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart");
Uri albumArtUri = ContentUris.withAppendedId(sArtworkUri, albumIds.get(position));
GlideApp.with(context)
.load(albumArtUri)
.error(myImageList[randomNumber])
.dontAnimate()
.override(250,250)
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)
.into(holder.albumPageIv);