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: Forefront (Identity Manager/Sync Service) missing from Service Manager
Answer: I've seen this before.  Running a Install-SPService fixed it for me - http://sharepoint.nauplius.net/2011/06/missing-user-profile-synchronization.html.