Android list all images available

Posted by Javadid on Stack Overflow See other posts from Stack Overflow or by Javadid
Published on 2010-06-11T05:51:32Z Indexed on 2010/06/11 5:52 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

hi friends,

I m making an application which requires me to list all the images available on the SD-Card of the phone.

i tried querying the ContentResolver way i.e.

Cursor image = getContentResolver().query(Images.Media.EXTERNAL_CONTENT_URI, new String[]{Images.Media._ID,Images.Media.DATA,Images.Media.DISPLAY_NAME}, null, null, null);

but without any result. Is there any way i can get the list or if thats not possible then is there any possible intent (e.g. PICK) by which i can allow the user to select a file and then access the path of the file the user selected??

Helppppp guys...

© Stack Overflow or respective owner

Related posts about android

Related posts about list