package com.way.util; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo.State; public class NetUtil { public static final int NETWORN_NONE = 0; public static final int NETWORN_WIFI = 1; public stat…