要在Android中的ImageView
中显示图片,我使用以下代码:
URL newurl = new URL("" + WebsiteURL + "/images/profileImg/" + objUserData.getImage() + "");
Bitmap mIcon_val = BitmapFactory.decodeStream(newurl.openConnection().getInputStream());
userphoto.setImageBitmap(mIcon_val);
当我没有分配targetSdkVersion
时它工作正常但是如果我正在分配那么它显示错误:
02-11 12:07:46.339: E/chromium(25772): external/chromium/net/disk_cache/stat_hub.cc:216: [0211/120746:ERROR:stat_hub.cc(216)] StatHub::Init - App com.Mobile.mytestbuddy isn't supported.