Code example for NsdManager

Methods: unregisterService

0
		initializeRegistrationListener(); 
		initializeResolveListener(); 
 
		registerService(port);
 
		return 1; 
	} 
 
	@Override 
	public void onDestroy() { 
		running = false;
		mNsdManager.unregisterService(mRegistrationListener);
		// mNsdManager.stopServiceDiscovery(mDiscoveryListener); 
		super.onDestroy(); 
	} 
 
	public static void destroy() { 
		try { 
			running = false;
			Log.i(TAG, "Stopping NSD Service");
			mNsdManager.unregisterService(mRegistrationListener);