Closed GoogleCodeExporter closed 9 years ago
Original comment by OlliTech
on 17 Dec 2009 at 8:01
ConnectivityManager connectivityManager =
(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
connectivityManager.getNetworkInfo(0).isConnectedOrConnecting()
add the following permission in the manifest:
Code:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Props -> http://www.anddev.org/viewtopic.php?p=19332
Original comment by OlliTech
on 17 Dec 2009 at 8:06
This issue was updated by revision r86.
Now uses cocnnectivity mamager, but requires extra permission.
requestRouteToHost may be of use, but is minimally documented and requires an
ip address.
Original comment by OlliTech
on 4 Jan 2010 at 7:50
Original issue reported on code.google.com by
OlliTech
on 17 Dec 2009 at 8:01