Edited:
glide
to load images. I\'m getting Out of
Using Glide doesn't guarantee no Out of Memory
errors, you need to use several small steps to reduce the probability to not get OOM's
.
Step 1: Understand the caching mechanism in Glide
Step 2: I prefer to load thumbnails
into recyclerview
Glide
.with( context )
.load( UsageExampleGifAndVideos.gifUrl )
.thumbnail( 0.1f )
.into( imageView2 );
Remember to always request small size image if bigger or HD images are not required.