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 are using MediaStore.Images.Media.EXTERNAL_CONTENT_URI which is only the external storage.For the internal there is MediaStore.Images.Media.INTERNAL_CONTENT_URI.
You can use a MergeCursor to combine both query results.