Searched refs:conn (Results 1 – 1 of 1) sorted by relevance
90 HttpURLConnection conn = null; in isConnected() local94 conn = (HttpURLConnection) url.openConnection(); in isConnected()95 conn.setRequestMethod("GET"); in isConnected()96 conn.setConnectTimeout(TIMEOUT * 60); // 1 minute in isConnected()97 conn.setReadTimeout(TIMEOUT * 60); // 1 minute in isConnected()98 Log.i(TAG, "connection response code is " + conn.getResponseCode()); in isConnected()107 if (conn != null) { in isConnected()108 conn.disconnect(); in isConnected()