TypeReasonJava.IO.IOExceptionif an error occurs while connecting to the resource.
Opens a connection to the resource. This method will not reconnect to a resource after the initial connection has been closed.
[Android Documentation]