This question is about this popular Android library, Universal Image Loader for Android: https://github.com/nostra13/Android-Universal-Image-Loader
- I made sure WRITE_EXTERNAL_STORAGE is added.
- I enabled both memory and disk cache
- I used UnlimitedDiscCache for disk cache
- I'm building against Android 2.2 SDK. The exception is found when I'm testing the app on a Android 4.1.2 Nexus S device.
- For most of my images, the loading is smooth and fine. However, for certain images, I always get the same exception. Below is an example.
Image URL: http://i10.topit.me/l046/10046137034b1c0db0.jpg
Back trace:
01-14 00:24:42.125: ERROR/ImageLoader(1671): http://i10.topit.me/l046/10046137034b1c0db0.jpg java.io.FileNotFoundException: http://i10.topit.me/l046/10046137034b1c0db0.jpg at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177) at com.nostra13.universalimageloader.core.download.URLConnectionImageDownloader.getStreamFromNetwork(URLConnectionImageDownloader.java:40) at com.nostra13.universalimageloader.core.download.ImageDownloader.getStream(ImageDownloader.java:27) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.saveImageOnDisc(LoadAndDisplayImageTask.java:296) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:204) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:128) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) Please help.