摘要:
View Code public static Bitmap downloadBitmap(String imageUrl) { Log.d("try to download image","imageUrl:"+imageUrl); URL url = null; Bitmap bitmap = null; try { /* new URL对象将网址传入 */ url = new URL(imageUrl); } catch (MalformedURLException e) { e.printStackTrace(); return null; } 阅读全文