摘要: 最近在学安卓,写着写着无意间发现这样一个问题,InputStream 对象读过一次之后便为空,一直想不到原因,代码如下: 1 public Bitmap getBitMap(String path) throws Exception{ 2 URL url=new URL(path); 3 HttpURLConnection conn=(HttpURLConnection) url.openConnection(); 4 conn.setConnectTimeout(5000); 5 conn.setRequestMethod("G... 阅读全文
posted @ 2013-10-31 23:19 会做菜的老狼 阅读(4900) 评论(0) 推荐(0) 编辑