Code example for NetworkInterface

Methods: getInetAddresses

        return true; 
    protected List<InetAddress> getInetAddresses(NetworkInterface networkInterface) {
        return Collections.list(networkInterface.getInetAddresses());
    public static NetworkInterface getWifiNetworkInterface(WifiManager manager) {
        if (ModelUtil.ANDROID_EMULATOR) { 
        	//TODO: not interested in emulator mode yet, get stuff running on real device  
            //return getEmulatorWifiNetworkInterface(manager); 
        	return null; 
        return AndroidTetherNetworkAddressFactory.getRealWifiNetworkInterface(manager);
	public static NetworkInterface getRealWifiNetworkInterface(WifiManager manager) {
        Enumeration<NetworkInterface> interfaces = null;
        try { 
            //the WiFi network interface will be one of these.