In my news activity I need to load images from the web server to place them in ListView
.
I have found many ways to load image from url. I find this solution as the most effective:
how to set image from url for imageView
It works fine when I have 1-4 news in a list. But the problem occurs when I load the past 30 days news. My list becomes very long and the images aren't get loaded even after 2-3 minutes though I make all the thumbs 4-5 KB. Even if I scroll the list, images are getting unloaded again.
In this image I test the app on Genymotion. I opened the activity and chose the news from past 30 days. Everything works fine because I use virtual server.
But when I test it on my phone, with real server, the problem occurs. Is there any optimal way?