downloadImageBitmap

open fun downloadImageBitmap(imageUrl: String): Bitmap

Downloads an image and returns a bitmap object.According to http://developer.android.com/guide/appendix/media-formats.html, the supportedfiletypes are jpg and png.

Return

An image in Bitmap form. If the image cannot be downloaded, or cannot be decoded intoa bitmap, then null is returned.

Parameters

imageUrl

The url where the image is found