Generating thumbnails for external (SD Card) images

by Socrates » Tue, 18 Nov 2008 23:12:12 GMT

Sponsored Links
 After pushing numerous pictures onto an SD card image, I'm having
trouble displaying them in a grid-like view.  I am trying to use
android.provider.MediaStore.Images.Thumbnails to access image
thumbnails, but I can't find a way to generate thumbnails and populate
the thumbnails table.

I have tried using Images.Media.insertImage(), but this does strange
things like create multiple thumbnails per image and it frequently
causes an OutOfMemory error.  I am using to scan the individual picture
files -- this adds the pictures to the Images.Media table, but this
does not generate thumbnails.

How do I create thumbnails?  And what is the best way to add an image
into the MediaStore database?


Other Threads

1. A clear, concise tutorial on PreferenceActivity & Preferences?

Yes. That will return the same preferences for this application.

Well, there's more to it than that. You may need to scroll to the right.

I'm going to need to switch to spaces instead of tabs, as my books need
two-space tabs, but GitHub uses eight-space tabs, so my code gets
stretched way out horizontally. :-(


Mark Murphy (a Commons Guy) | |

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.5 Available!


2. Load https requests with Webkit


I'm trying to load https requests with a Webkit object but It shows
only a blank page, with http requests I don't have problems, It shows
the page correctly.

Could be that there is a problem with the certificate? Where webkit
goes to look the authorized certificates?

Thank you.


3. VP8 Video Codec

4. OOT : Kangen Confirm Account Gmail


6. VirtualBox Black Screen

7. Issue with setBuiltInZoomControls on HTC Incredible