Code example for WifiInfo

Methods: toString

0
		return (mWifiInfo == null) ? "NULL" : mWifiInfo.getSSID();
	} 
 
	// 得到WifiInfo的所有信息包 
	public String getWifiInfo() {
		return (mWifiInfo == null) ? "NULL" : mWifiInfo.toString();
	} 
 
	private WifiConfiguration IsExsits(String SSID) {
		List<WifiConfiguration> existingConfigs = mWifiManager
				.getConfiguredNetworks();
		for (WifiConfiguration existingConfig : existingConfigs) {
			if (existingConfig.SSID.equals("\"" + SSID + "\"")) {
				return existingConfig;
			} 
		} 
		return null; 
	} 
 
	public WifiConfiguration CreateWifiInfo(String SSID, String Password,