skImageDecoder :: Factory在android中返回null

时间:2014-04-24 21:36:40

标签: java android web-services http httpresponse

我写了这样的代码

    private void handleResponse(String response) throws JSONException {

    JSONObject jsonObject = new JSONObject(response);
    byte[] logo = Base64.decode(jsonObject.getString("hotel_logo"),
            Base64.DEFAULT);
    Bitmap hotel_Logo = BitmapFactory.decodeByteArray(logo, 0, logo.length);
    hotelLogo.setImageBitmap(hotel_Logo);

}

它在我的app中显示 skImageDecoder :: Factory返回null 。我在这段代码中做了什么错误?

0 个答案:

没有答案