7 comments:

This actually doesn't check if device is really connected to internet but just checks if it is connected to a network. To check internet connection, look into my answer here:http://stackoverflow.com/questions/9570237/android-check-internet-connection/9570292#9570292