I am using HttpURLConnection package to download a large file. I am able to do so but I am bit confuse between HttpURLConnection.connect vs URL.openurlconnection methods.
The URL.openurlconnection returns HttpURLConnection. So can I reuse this object ? If the network disconnects and then connects back, I would like to continue downloading the file. Can I directly call connect() or do I have to reconfigure the connection ?
Link to the documentation: HttpURLConnection: http://developer.android.com/reference/java/net/HttpURLConnection.html URL: http://developer.android.com/reference/java/net/URL.html
Thanks