4
Good afternoon, my friends, The thing is, I’m going to use Volley to get the data from the webservice, and so I write the list to my local BD with Sqlite.
In this webservice will come a JSON with items, each item has its data and an image. I need to cache this image to show in a listview and later in a detail screen. In the future the user will clean these items, thus wiping their images as well.
Well, how can I cache these images and link to each item saved in my BD?
EDIT 1
I will, at 90%, be offline. I will only be online to synchronize and download the updated server items
With it I can relate my data saved in the database to the images?
– LMaker
@Luangabriel I edited to help. The documentation contains more details.
– Mateus
Ah, I forgot to mention: I have to show these images offline. I will only connect to the internet when I synchronize with the server and download the items.
– LMaker
Indifferent. With Picasso you get this result.
– Mateus
Picasso really solved it. I used the attribute
.networkPolicy(NetworkPolicy.OFFLINE)
also.– LMaker