I am creating an application wherein I need all the images in the gallery into my application that has a girdview in it. I want all the images from all the folders to appear
You can not get results with just one query, try to instantiate two different Cursors.
Since you have already added EXTERNAL_CONTENT_URI, here is another: