app/src/main/java/com/yahala/ImageLoader/bitmap/BitmapUtil.java
/**
     * Convenience method to decode an input stream as a bitmap using BitmapFactory.decodeStream without any parameter options.
     * <p/>
     * If decoding fails the input stream is closed.
     *
     * @param is input stream of image data
     * @return bitmap created from the given input stream.
     */
Convenience method to decode an input stream as a bitmap using BitmapFactory.decodeStream without any parameter options.

If decoding fails the input stream is closed.

@param is input stream of image data
@return bitmap created from the given input stream.
Convenience method to decode an input stream as a bitmap using BitmapFactory . decodeStream without any parameter options . If decoding fails the input stream is closed . @param is input stream of image data @return bitmap created from the given input stream .
public Bitmap decodeInputStream(InputStream is) {
        Bitmap bitmap = null;
        try {
            bitmap = BitmapFactory.decodeStream(is, null, null);
        } catch (final Throwable e) {
        } finally {
            closeSilently(is);
        }
        return bitmap;
    }
public Bitmap decodeInputStream ( InputStream is ) { Bitmap bitmap = null ; try { bitmap = BitmapFactory . decodeStream ( is , null , null ) ; } catch ( final Throwable e ) { } finally { closeSilently ( is ) ; } return bitmap ; }
Convenience method to decode an input stream as a bitmap using BitmapFactory.decodeStream without any parameter options.
Convenience method to decode an input stream as a bitmap using BitmapFactory . decodeStream without any parameter options .
// calling gc does not help as is called anyway // http://code.google.com/p/android/issues/detail?id=8488#c80 // System.gc();