Yes, you should. According to the JavaDoc:
http://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html
Each HttpURLConnection instance is used to make a single request but the
underlying network connection to the HTTP server may be transparently
shared by other instances. Calling the
Google is providing 2 different examples of HttpURLConnection usage.
Not calling HttpURLConnection's disconnect
http://developer.android.com/training/basics/network-ops/connecting.html
// Given a URL, establishes an HttpUrlConnection and retrieves// the web page
content as a InputStream,
2 matches
Mail list logo