image - Android Glide download before display -


i'm using glide , want know if it's possible download images without display them fill cache display them later ? tried images not downloaded :

for (string url: urls) {     glide.with(getbasecontext()).load(url);     log.v("download", "processing"); } 

can me ?

i solved problem can use download images :

glide    .with( context )    .load( "http://futurestud.io/icon.png" )    .downloadonly(2000, 2000); 

and , display images in cache, should use same url , add diskcachestrategy parameter :

glide.with(context)     .load( "http://futurestud.io/icon.png" )     .diskcachestrategy(diskcachestrategy.all)     .into(imageview); 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -