title: Android Reachability test
body: <p>I have an issue regarding how to check the reachability of a certain url. I can do it with a httpget url connection.</p>
  
  <pre><code>HttpGet httpGet = new HttpGet(HOST_URL);
  HttpParams httpParameters = new BasicHttpParams();
  int timeoutConnection = 5000;
  HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);
  int timeoutSocket = 8000;
  HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);
  DefaultHttpClient httpClient = new DefaultHttpClient(httpParameters);
  HttpResponse response = httpClient.execute(httpGet);
  </code></pre>
  
  <p>But i want to do it with this way.</p>
  
  <pre><code>ConnectivityManager cm = (ConnectivityManager) TabViewActivity.this.getSystemService(Context.CONNECTIVITY_SERVICE);
  boolean test = cm.requestRouteToHost(ConnectivityManager.TYPE_WIFI,
                              lookupHost(HOST_IP));
  </code></pre>
  
  <p>But the problem is the boolean always returns flase. </p>
  
  <p>If you have any ideas about this issue it will be a big help. </p>
  
  <p>Thanks in advance. </p>