title: Retrieve images of particular folder in Android
body: <p>In my application I created the <code>GridView</code> to show the image from particular folder.
  The issue is that I want to retrieve images from the DCIM/100ANDRO folder.
  Which type of arguments should be passed through query to retrieve such type of images?
  Please provide me solution.</p>
  
  <p>I am using following code to retrieve which gives me images captured by camera</p>
  
  <pre><code>        //importing only camera images and storing in ArrayList of class Images     type
          String[] projection = {
          MediaStore.Images.Media._ID, MediaStore.Images.Media.BUCKET_DISPLAY_NAME,
          MediaStore.Images.Media.DISPLAY_NAME
          };
          String selection = MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " = ?";
          String[] selectionArgs = new String[] {
              "Camera"
          };
  
          Cursor mImageCursor = getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, selection, selectionArgs, null ); 
  
          if (mImageCursor != null)
          {
  
              mImageCursor.moveToFirst();
  
              for (int i = 0; i &lt; mImageCursor.getCount(); i++)
              {
                  Images im=new Images();
                  eachImageView=new ImageView(this);
                  int imageId = mImageCursor.getInt((mImageCursor.getColumnIndex( MediaStore.Images.Media._ID)));
                  Bitmap bm = MediaStore.Images.Thumbnails.getThumbnail(getContentResolver(), 
                      imageId, MediaStore.Images.Thumbnails.MINI_KIND, null);
                  im.setBitmap(bm);
                  eachImageView.setImageBitmap(bm);
                  im.setImageView(eachImageView);
  
                  arrayOfImages.add(im);
  
                  mImageCursor.moveToNext();
              }
          }
  </code></pre>
  
  <p>Suggestion will be appreciated!</p>