How would i know whether my device is connected the web or not? How can i detect connectivity? Any sample code?
http://developer.android.com/reference/android/net/ConnectivityManager.html - CONNECTIVITY_ACTION