How can I get a list of all images on SD card w/thumbnails?

All your problems with Audio, Video and Images.

How can I get a list of all images on SD card w/thumbnails?

Postby Sweevo » Thu Oct 21, 2010 8:59 pm

I'd like to display a gallery with all images on the SD card.

Of course, if I simply give it every single image on the card, most images will be included twice - first the original image, then the thumbnail.

Also, the app will run out of memory, dealing with those large images.

So what I'd like to do is find a list of all the images that have thumbnails, and for each of them, know both the thumbnail filename (so the gallery can display it) and the full image filename (so I can do something useful if the thumbnail is selected).

I can't figure out how to do that. The gallery app in the API demos has a few hardcoded images.

It sounds like such an obvious use for the gallery that there have to be examples somewhere...
Sweevo
Developer
Developer
 
Posts: 35
Joined: Thu Oct 16, 2008 9:27 am

Top

Re: How can I get a list of all images on SD card w/thumbnai

Postby Schermvlieger » Sun Oct 24, 2010 6:34 pm

There is a tutorial to achieve what you want here on these forums;

Use the search function: "pictures from sdcard" or "images from sdcard"
Schermvlieger
Senior Developer
Senior Developer
 
Posts: 159
Joined: Fri Feb 26, 2010 1:37 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 5 guests