aspose file tools*
The moose likes Android and the fly likes how to retrieve images from database and show in grid view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to retrieve images from database and show in grid view" Watch "how to retrieve images from database and show in grid view" New topic
Author

how to retrieve images from database and show in grid view

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
hi...
i want to show all the images from database in a gridview or list view in android...
could not find any good tutorial to do that....all i get are examples who take from drawable and display...
any help would be greatly appreciated on this since i am struggling so long..

thankyou in advance.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1451
    
    6

What exactly do you mean by images from database? Is it a remote database or a local database? Please give us more details.


Swastik
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
Hi,
thanks for your reply

i want to fetch images from sqllite and show in gridview....iam inserting images in byte[] to the database...
also i would like to know what would happen if iam able to successfully insert images to remote database is it ok???

retrieving images anyhow i want to do
please suggest
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
no reply
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
What have you tried that hasn't worked? The Android developer docs point to example code about how to use the built-in DB.

Using a remote DB would probably result in long delays and a very sluggish app.
Mohan Prasath
Ranch Hand

Joined: Jul 25, 2011
Posts: 38

This link will give you a sample code Hello Android.


With regards,
Mohan Prasath
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to retrieve images from database and show in grid view