sthabinisha / vimeoid

Automatically exported from code.google.com/p/vimeoid
0 stars 0 forks source link

Real connection testing #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the connection test fails on real device, 

ConnectivityManager connection =  
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
connection.getActiveNetworkInfo().isConnectedOrConnecting();

returns false, even if Wi-Fi is enabled.

Also, connection.requestRouteToHost can be used to check if Vimeo site is 
reachable

Original issue reported on code.google.com by shaman.sir on 10 Sep 2010 at 5:09