Code example for NsdManager

Methods: stopServiceDiscovery, unregisterService

0
	} 
 
	@Override 
	public void onDetach() { 
		if (mRegistrationListener != null) {
			mNsdManager.unregisterService(mRegistrationListener);
			mConnection.tearDown();
			mConnection = null;
		} 
		mNsdManager.stopServiceDiscovery(mDiscoveryListener);
 
		super.onDetach(); 
	} 
 
	/** 
	 * 指定された {@link NsdServiceInfo} を解決し、接続を行います。 
	 *  
	 * @param data 
	 */ 
	public void connect(NsdServiceInfo data) {
		ResolveListener listener = generateResolveListener();