retrieve all the images in phone and sdcard

by Xian Chen » Thu, 30 Apr 2009 05:41:10 GMT


Sponsored Links
 Hi,

How can I retrieve all the images both in phone memory and external sdcard?

I need the image path, name and size information.

Thanks in advance,
Xian

--~--~---------~--~----~------------~-------~--~----~



retrieve all the images in phone and sdcard

by Xian Chen » Thu, 30 Apr 2009 06:34:39 GMT


 Maybe I did not make the question clear.

What I want to do is retrieving all the images in phone and sdcard,
including file name, and image size. But I do not want the user to pick one
image, in other words, I want my activity to retrieve all the images the
user can see automatically and return some information.

So, I need the image ( or imageColumn) URI, but I cannot find it from the
document.

Anyone know this?

Thanks,
Xian





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


retrieve all the images in phone and sdcard

by Peli » Thu, 30 Apr 2009 08:04:40 GMT


 Use the media content provider:
 http://developer.android.com/guide/topics/providers/content-providers.html 
 http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html 

using something like this:
ContentResolver cr = getContentResolver();
Cursor cur = managedQuery
(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null,
null);

Peli
www.openintents.org





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to change RadioButton size???

How to change RadioButton size??? it's too big
--~--~---------~--~----~------------~-------~--~----~

2. Anyone working on a Dex decompiler ? I am doing one .

I am working on a Java app to decompiler dex file .

Is there anyone are working about that too ?

I had create a project on http://code.google.com/p/dex-decomplier/ ,
pls take a look.

Do hope for you join. If you want to join , pls send me a mail .

--~--~---------~--~----~------------~-------~--~----~

3. How to package resource files of core classes of dalvik?

4. Memory Card Reader Application

5. MOBILE SCREE PROPERTIES

6. Fails to access SurfaceFlinger even when specify ACCESS_SURFACE_FLINGER in Manifest.xml

7. Is there any truth in the Cupcake rollout rumors ...