Pre fetching Images using Glide in android
I have an activity which will loads images one by one in same imageview using fadein fadeout animations. In order to provide a good user experience i want to pre fetch the images asynchronously and show them with a constant flow. I want to use glide for achieving the above said behaviour. But i am confused because there are two different approaches I found on internet to pre fetch (Cache) images. First is using Glide's .preload() method: Glide.with(this) .load(url) .diskCacheStrategy(DiskCacheStrategy.SOURCE) .preload() Second is using Glide's .downloadOnly(int , int) method: Glide.with(applicationContext) .load(yourUrl) .downloadOnly(500, 500); I have two questions: What is difference between preload and downloadOnly and which one best suites my situation? How to know that all of my images have been pre fetched and i can continue the process of showing images using one of the above (Best one) approaches?
Android dialog called as intent is not showing the background screen. It is showing black backgroud
Is it possible to have an AdView inside of a LinearLayout which shrinks the AdView to 180px width
Android WebView : Default Save As Context Long Press
my app gets installed on the android emulator but it fails to run and there are no errors
How to get screen display metrics in application class
Why runtime can not recognize string defined in “res/values/strings.xml”
Android - How to get current user coordinates/location on demand?
Android: keep a TextView at the same locaton on a bitmap regardless screen type
make notification when clicking app bring to front
Android: Eclipse autocomplete does not work in xml files
Will ActionbarSherlock in APK file of my own project?
Change package manager application info meta data in android
sending images from gallery
Removing the margin from bottom in android Relativelayout
How to implement 3D / tilt mode in mapview?
Android calendar : created an event using intent , but it does not go back to my activity