Can you explain the Functionality of requestRouteToHost() in android?
In my code I am using requestRouteToHost() method: Does this routing means changing the WIFI to 3G or vice versa?? My code is not working... public static boolean isHostAvailable(Context context, String urlString) throws UnknownHostException, MalformedURLException { boolean ret = false; int networkType = ConnectivityManager.TYPE_WIFI; ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if(cm != null){ NetworkInfo nf = cm.getActiveNetworkInfo(); if(nf != null){ networkType = nf.getType(); } URL url = new URL(urlString); InetAddress iAddress =