friends,
i am trying to check internetconnectivity in android and using following code
final ConnectivityManager conn_manager = (ConnectivityManager)
Use this nifty library: http://code.google.com/p/connectivity
You can subscribe to network status notification and get a callback when network status changes. Or, you can query directly if network is available. Very simple to use.