Code example for NsdServiceInfo

Methods: getHost, getPort, getServiceName, getServiceType

0
			} 
 
			@Override 
			public void onUnregistrationFailed(NsdServiceInfo serviceInfo,
					int errorCode) {
			} 
		}; 
	} 
 
	public static void initializeDiscoveryListener() { 
 
		mDiscoveryListener = new NsdManager.DiscoveryListener() {
 
			@Override 
			public void onDiscoveryStarted(String regType) {
				Log.d(TAG, "Service discovery started");
			} 
 
			@Override 
			public void onServiceFound(NsdServiceInfo service) {
				Log.d(TAG, "Service discovery success");