com.rscja.utility

## Class NetUtils

- java.lang.Object
- - com.rscja.utility.NetUtils

-     public class NetUtils
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NetUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `getNetworkClass(Activity act)`
    `static java.lang.String` | `getNetworkType(Activity act)` 获取当前网络类型
    `static boolean` | `isNetworkConnected(Context act)` 检测网络是否可用

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NetUtils

          public NetUtils()

  - ### Method Detail

    - #### isNetworkConnected

          public static boolean isNetworkConnected(Context act)

      检测网络是否可用
      Returns:

    - #### getNetworkType

          public static java.lang.String getNetworkType(Activity act)

      获取当前网络类型
      Returns:
        WiFi或移动网络CDMA 网络类型为CDMAEDGE 网络类型为EDGE EVDO_0 网络类型为EVDO0EVDO_A 网络类型为EVDOA GPRS 网络类型为GPRSHSDPA 网络类型为HSDPA HSPA 网络类型为HSPAHSUPA 网络类型为HSUPA UMTS 网络类型为UMTS

    - #### getNetworkClass

          public static java.lang.String getNetworkClass(Activity act)