08-12 18:19:06.482: W/IInputConnectionWrapper(23507): showStatusIcon on inactive InputConnection
这几天开发项目遇到这个warning
查了一下, 应该是 Connection 和 Stream 之类的没有关闭的原因
记得在 finally 里释放资源
HttpURLConnection con = null;
try {
// some code
} catch (Exception e) {
e.printStackTrace();
} finally {
if (con != null) {
con.disconnect();
}
}