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 On 30 Apr., 00:34, Xian Chen <[email protected]> wrote: > 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 > > On Wed, Apr 29, 2009 at 5:41 PM, Xian Chen <[email protected]> wrote: > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

