How to know whether Android is connected to WiFi or ethernet? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . How to know whether I'm connected to WiFi or ethernet in Android? In Android OS this is notified for thess icons Does it exist a way to know it programmatically? 回答1: http://developer.android.com/training/basics/network-ops/managing.html ConnectivityManager cm =