开发者

How to populate Android GalleryView from database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 1 year ago.

Improve this question

I am writing an Android application where I need to populate GalleryView with images dynamically from a database. I will get images from web and will store in SD card and store the absolute path of that images in database.

When I query database, I need to populate Gallery View with images based on url which I retrieve from开发者_如何学编程 local database. I am unable to do this. I am therefore seeking sample code to how to populate GalleryView in Android from database dynamically.


I know you have asked a question for GalleryView but still You can use this example to load Images inside Galleryview: Lazy load of images in ListView

But, before using this example, you have to fetch the data from local database and then create your custom adapter by looking into the above example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜