in my app i have to download high resolution images from my server. i am planning to use volley. the image loading is work well for small images.for some high resolution images it throws out of memory exception.
i have tested with some sample images it will throw out of memory exception for some images. i also seen about sub sampling large images to display efficiently in this link [loading large images efficiently](http://developer.android.com/training/displaying-bitmaps/load-bitmap.html).i don't know it will automatically reduce the image resolution for high resolution images.

code for loading image using volley into an imageview.

```
imgloader_disk.get(url, new ImageListener() {

        @Override
        public void onErrorResponse(VolleyError error) {

        }

        @Override
        public void onResponse(ImageContainer response, boolean arg1) {
            if (response.getBitmap() != null) {
                mImageView.setImageBitmap(response.getBitmap());

            }
        }
    });

```