• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to retrieve images from database and show in grid view

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by images from database? Is it a remote database or a local database? Please give us more details.
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no reply
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link will give you a sample code Hello Android.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic