2011-06-23から1日間の記事一覧

android2.2で(2.1とかはわかんないけど)HttpUrlConnectionを使用するとき

KeepAlive設定でInputStreamとHttpConnectionが死ぬので、 System.setProperty("http.keepAlive", "false"); KeepAliveをオフにするのこと。

俺専用メモ。

conn = (HttpURLConnection) bitmapUrl.openConnection(); conn.connect(); is = conn.getInputStream(); //bis = new BufferedInputStream(is); //bm = BitmapFactory.decodeStream(bis); bm = BitmapFactory.decodeStream(is); これは主にIS03で画像取得を…