Skip to content Skip to sidebar Skip to footer

Show Image From Database Where You Saved The Path Of Image

Hello i have saved in my databse the path of an image .How can i show the image on the screen?The image path is saved in column 'photo' in table 'contactTest1' ! Now i can show on

Solution 1:

You'll have to extend the SimpleCursorAdapter and override getView() which is where, for every item in your list, you can layout the data in the row.

For the image, I think there is a class called BitmapFactory which you can use to create images from urls, paths etc. I haven't used it myself, so can't give an example I'm afraid.

Good luck!


Post a Comment for "Show Image From Database Where You Saved The Path Of Image"