課程
/移動開發
/Android
/Android必學-異步加載
這是為什么?求大神指導
2016-10-07
源自:Android必學-異步加載 3-1
正在回答
大哥解決沒,我也遇到同樣問題了。。。。
? ??? InputStream is = null; ? ? ? URL url=new URL(urlString); ? ? ? ?HttpURLConnection connection=(HttpURLConnection)url.openConnection(); ? ? ? ?is=new BufferedInputStream(connection.getInputStream()); ? ? ? ?bitmap= BitmapFactory.decodeStream(is); ? ? ? ?connection.disconnect();??
qq_SUNNYsun_0 提問者
舉報
了解Android中的異步加載處理方法,這是面試問的最多的知識點
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-04-11
大哥解決沒,我也遇到同樣問題了。。。。
2016-10-07
? ??? InputStream is = null;
? ? ? URL url=new URL(urlString);
? ? ? ?HttpURLConnection connection=(HttpURLConnection)url.openConnection();
? ? ? ?is=new BufferedInputStream(connection.getInputStream());
? ? ? ?bitmap= BitmapFactory.decodeStream(is);
? ? ? ?connection.disconnect();
?
?