thest1 / LazyList

Lazy load of images in Android
http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012
MIT License
1.2k stars 497 forks source link

Suddenly stop working #51

Closed WyrnCael closed 7 years ago

WyrnCael commented 7 years ago

Hi,

I've been using this since time ago, but suddenly has stop working. I've added permissions on execution time, but i'm still reciving the following error:

java.io.FileNotFoundException: /storage/emulated/0/LazyList/-44270421 (Permission denied)

The only thing has changed is the app.iml file, could be here the error?

Any help is apreciated! Thank you!

thest1 commented 7 years ago

How many image files do you have in LazyList directory?

WyrnCael commented 7 years ago

36 images

WyrnCael commented 7 years ago

I've cleaned the directory and I'm still having the same issue.

WyrnCael commented 7 years ago

Removing LazyList directory and trying again solved my problem. Probabbly I have a cache error and wrong cleaning in my app.

I will check my code.

Thank you! You can close the issue.

thest1 commented 7 years ago

Let me know if you figure out what the problem was.

WyrnCael commented 7 years ago

Yes, I solved it.

I wasn't calling ImageLoader.clearCache() and the directory was never emptied! I call this method in onBackPressed in the Activity and now all works fine. I also call it when app start in case there is a unexpected closure.

I was assuming that this method was called automatically.

AdminIT-arch commented 1 year ago
AdminIT-arch commented 1 year ago