public static void getBitmapByImageURL ( String imageURL , final OnEventListener callback ) { new DownloadImageTask < Bitmap > ( imageURL , new OnEventListener < Bitmap > ( ) { @ Override public void onSuccess ( Bitmap bitmap ) { callback . onSuccess ( bitmap ) ; } @ Override public void onFailure ( Exception e ) { callback . onFailure ( e ) ; } } ) . execute ( ) ; }
Get a bitmap by a given URL