Android Developers Docs Reference added in API level 1 org.apache.http.conn Exceptions ConnectTimeoutException This class was deprecated in API level 22. Please use URL.openConnection() instead. Please visit this webpage for further details. Exceptions ConnectTimeoutException Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated June 6, 2018.