Code example for WifiInfo

Methods: getMacAddress

0
				// be connected by WIFI so this should work 
				// TODO: handle the case where we don't have a phone number OR a 
				// WIFI connection 
				WifiInfo info = wifiMgr.getConnectionInfo();
				if (info != null) {
					number = info.getMacAddress();
				} 
			} 
		} 
		if(number == null || number.trim().length()==0){
			number = teleMgr.getDeviceId();
		} 
		return number;
	} 
}