Tag: 2

  • HowTo: Check internet connectivity in Android

    When programming an Android App you sometimes want to check, if you are connected to the Internet.

    The first thing that comes to mind is using the ConenctivityManager.

    Yet, this solution has the problem that it only tells you that you are connected to .. something. With a WiFi connection this can mean, that you are connected to an access point. But it does not tell you that the access point is connected to something else = that you can reach the public internet!

    (more…)