I want to load and cache images only in memory, and not pass them to the view, and then when I need them to load into the user interface in order to get them from the memory cache, if they exist in memory.
I tried:
Glide.with().load(uri).into(new SimpleTarget<GlideDrawable>(WIDTH,HEIGHT) { @Override public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) {
But when later I make a call to load this uri into ImageView, it will still load it from the path, not from memory.
Is there any other way to cache images in memory without loading them into the user interface?
source share