mardi 3 mars 2015

How use images from a MySQL database to display them in a Master/Details android application?

I'm developing a Master/Details android application. The datas displayed come from a MySQL database in a server.


I succeed with the datas of TEXT/DATE types, but I don't know how to do with BLOB type. Indeed, I would like to show a small image for each element of my Master ListView (which is populated with a SimpleCursorAdapter), and a "big" one on the Details fragment.


I'm looking for the right method/tutorial to do that, because I read a lot of different things on the web, but nothing about the method to do that... That I know is :



  • we don't have to store images in the SQLite android database but paths

  • the http requests for images must be separated from the others TEXT fields


I hope my english is not so bad, tell me if I have to put some code in there.


Thank you !


Aucun commentaire:

Enregistrer un commentaire