获取网络和WIFI状态及调用网络设置界面.docVIP

  • 5
  • 0
  • 约2.55千字
  • 约 3页
  • 2015-07-29 发布于河南
  • 举报

获取网络和WIFI状态及调用网络设置界面.doc

Android编程获取网络连接状态(3G/Wifi)及调用网络配置界面 获取网络连接状态 随着3G和Wifi的推广,越来越多的Android应用程序需要调用网络资源,检测网络连接状态也就成为网络应用程序所必备的功能。 Android平台提供了ConnectivityManager 类,用于网络连接状态的检测。 Android开发文档这样描述ConnectivityManager 的作用: Class that answers queries about the state of network connectivity. It also notifies applications when network connectivity changes. Get an instance of this class by callingContext.getSystemService(Context.CONNECTIVITY_SERVICE). The primary responsibilities of this class are to: Monitor network connections (Wi-Fi, GPRS, UMTS, etc.) Send broadcast intents when network connectivity changes Attempt to

文档评论(0)

1亿VIP精品文档

相关文档