Android -把后台传的url转换为一张Bitmap
直接上代码复制可用public class TMNetUrlToBitmapHelper{public static Bitmap getBitmap(String netUrl,Context context){ URL url = null; try { url = new URL(netUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); .
原创
2021-05-24 14:50:19 ·
2240 阅读 ·
2 评论