runOnUiThread(new Runnable() { @Override public void run() { Drawable d = new BitmapDrawable(bitmap); iv_user_head.setImageDrawable(d); } });