bitmap = BitmapFactory.decodeStream(inputStream);
if (inputStream != null) {
inputStream.close();
}
} catch (OutOfMemoryError e) {
<BUG>Log.e(TAG, String.format("Out of Memory Error in image bitmap download for Url: %s.", imageUrl), e);
</BUG>
} catch (UnknownHostException e) {
<BUG>Log.e(TAG, String.format("Unknown Host Exception in image bitmap download for Url: %s. Device may be offline.", imageUrl), e);
</BUG>
} catch (MalformedURLException e) {

bitmap = BitmapFactory.decodeStream(inputStream);
if (inputStream != null) {
inputStream.close();
}
} catch (OutOfMemoryError e) {
AppboyLogger.e(TAG, String.format("Out of Memory Error in image bitmap download for Url: %s.", imageUrl), e);
} catch (UnknownHostException e) {
AppboyLogger.e(TAG, String.format("Unknown Host Exception in image bitmap download for Url: %s. Device may be offline.", imageUrl), e);
