title: Out of memory issue Bitmap
body: <p>getting out of memory issue </p>
  
  <pre><code>final String[] columns = { MediaStore.Images.Media.DATA, MediaStore.Images.Media._ID };
                  final String orderBy = MediaStore.Images.Media._ID;
                  Cursor imagecursor = managedQuery(
                          MediaStore.Images.Media.EXTERNAL_CONTENT_URI, columns, null,
                          null, orderBy);
                  int image_column_index = imagecursor.getColumnIndex(MediaStore.Images.Media._ID);
                  count = imagecursor.getCount();
                  thumbnails = new Bitmap[count];
                  arrPath = new String[count];
                  thumbnailsselection = new boolean[count];
                  for (int i = 0; i &lt; count; i++) {
                      imagecursor.moveToPosition(i);
                      int id = imagecursor.getInt(image_column_index);
                      int dataColumnIndex = imagecursor.getColumnIndex(MediaStore.Images.Media.DATA);
                      thumbnails[i] = MediaStore.Images.Thumbnails.getThumbnail(
                              getApplicationContext().getContentResolver(), id,
                              MediaStore.Images.Thumbnails.MICRO_KIND, null);
                      arrPath[i]= imagecursor.getString(dataColumnIndex);
                  }
                  GridView imagegrid = (GridView) findViewById(R.id.PhoneImageGrid);
                  imageAdapter = new ImageAdapter();
                  imagegrid.setAdapter(imageAdapter);
                  imagecursor.close();
  </code></pre>
  
  <p>getting Out of memory error here on bitmap:</p>
  
  <pre><code>Bitmap   thumbnails[i] = MediaStore.Images.Thumbnails.getThumbnail(
                                  getApplicationContext().getContentResolver(), id,
                                  MediaStore.Images.Thumbnails.MICRO_KIND, null);
  </code></pre>
  
  <p>it crashing in some devices
  Please help</p>