I am trying to use async requests to fetch the images from urls, to prevent the url from hanging. This is the piece of code i am using for this

private void setImg(final ImageView im, String url){
    AsyncHttpClient client = new AsyncHttpClient();
    client.get(url, new AsyncHttpResponseHandler(){
        public void onSuccess(String response){
            try{
                byte[] imageAsBytes = response.getBytes();
                im.setImageBitmap(BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length));
                im.refreshDrawableState();
            } catch(Throwable e){
                e.printStackTrace();
            }
        }
    });
}


This is always showing this warning in logcat

12-29 01:55:33.043: D/skia(14414): --- SkImageDecoder::Factory returned null

I cannot find a proper reason for this. Any help?


Question: What exactly is the difference between Unreal Development Kit and Uunreal Engine 4?
Answer: You download the Launcher (which is not a game launcher - it's Epic Games Launcher, because the company is called Epic Games), and from within the launcher you can download UE4. This should be trivial to find out though.