I am using glide to load images from URL. While I am fetching the images I am showing a loader in the image view. Some of the images being fetched are larger and therefore in slow internet connection timeout occurs and throws exception
How can I increase the timeout?
If you would like to use
OkHttp
, please importglide:okhttp-integration
according to this, and then implement your ownOkHttpGlideModule
:Below is the solution for:
Glide 4.3.1
&OkHttp 3.9.1
, a bit different than before (it's no moreOkHttpGlideModule
butAppGlideModule
).build.gradle
CustomGlideModule
Try this:
After searching a lot finally got an answer, if you are using volley:
Change the
DefaultRetryPolicy
according to your needAnd in the manifest: