android - Universal Image Loader - Network is unreachable -


i'm using universal image loader library in order load images urls, i'm testing possible connection exceptions. in specific situation interrupted internet connection while loading images , result series of errors messages (in console, app doesn't crash) "connect failed: enetunreach (network unreachable)". how can handle this?

you can configure uil show image default , on error. have @ displayoptions

displayimageoptions options = new displayimageoptions.builder()         .showimageonloading(r.drawable.ic_stub) // resource or drawable         .showimageforemptyuri(r.drawable.ic_empty) // resource or drawable         .showimageonfail(r.drawable.ic_error) // resource or drawable 

futher more in loading listener have callback when loading fails here


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -