Such problems occur when the input connection in the previous page(or class) has not been closed. Check whether you've closed the input connection in the previous class (by giving connection.close()).
This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling
httpClient.getConnectionManager().closeIdleConnections();
You can read the documentation for this method here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…