I am caching all data I’m getting in my App inside a SQLite DB… Whenever the user doesn’t have internet connection the data is loaded with a SimpleCursorAdapter from the database.
The database also contains the URL of Images. The images are cached by the image loading framework I’m using (Universal-Image-Loader), so when I run the framework with the URL from the database it gets the cached image.
My question is how I can call this method inside my SimpleCursorAdapter?
Until now I have only been able to get all the texts from the database and attach them to TextViews…
Thanks for your help!
So I was finally able to get this done myself…
I had to write a new method which extends CursorAdapter…
There I had to assign all my Texts I got from my DB with the TextView. So I was also able to give my Image Loader the Link to the (cached) image to load…
This is my code:
And this actually works pretty well 🙂