android中提供有一个类:android.net.ConnectivityManager 可以检测网络状态
起对象的实例化为:Context.getSystemService(Context.CONNECTIVITY_SERVICE)
.
譬如检测网络是否可用
android中提供有一个类:android.net.ConnectivityManager 可以检测网络状态
起对象的实例化为:Context.getSystemService(Context.CONNECTIVITY_SERVICE)
.
譬如检测网络是否可用