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
android.media.MediaScannerConnection 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. how to avoid data damage after power down

hi,
    I am porting android to my device(arm 926ejs). I use ubifs as my
filesystem , android works fine.
But there is no battery in the device. So I power down the device when it
still working. (Just power down the power supply)
    I found the data in the flash was damaged.  Can I avoid data damage
without using the power key to shutdown the device ?

-- 

2. How to Read E-pub File in android from sd card and with formatted output

hi  all

i am doing project on android platform, my application is based on
book reading like adobe acrobat so i am going to read e-pub format so
kindly help me out ....

Thank u

-- 

3. Background color of selected text

4. Can I get Image crop source code? in Android

5. LayoutInflater.inflate returning null

6. How to: Register Emulator device to work with chrome to phone extension?

7. (Update) Talking to wpa_supplicant for TTLS / PEAP / TLS (Runtime+wpa_cli / JNI / LocalSocket(Unix domain socket) / wpa_supplicant.conf?)