Back to project page MapsMuzei.
The source code is released under:
Apache License
If you think the Android project MapsMuzei listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.bonysoft.mapsmuzei; //from w w w. j a va2 s . co m import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; public class Utils { public static boolean isWiFiConnected(Context context) { ConnectivityManager connManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); return mWifi != null && mWifi.isConnected(); } }