Code example for NsdManager

Methods: stopServiceDiscovery

0
							"Unknown Service Type: " + service.getServiceType());
				} else if (service.getServiceName().equals(mServiceName)) {
					Log.d(TAG, "Same machine: " + mServiceName);
				} else { 
					mNsdManager.resolveService(service, mResolveListener);
				} 
			} 
 
			@Override 
			public void onServiceLost(NsdServiceInfo service) {
				Log.e(TAG, "service lost" + service);
			} 
 
			@Override 
			public void onDiscoveryStopped(String serviceType) {
				Log.i(TAG, serviceType + " Discovery stopped: " + serviceType);
			} 
 
			@Override 
			public void onStartDiscoveryFailed(String serviceType, int errorCode) {
				Log.e(TAG, serviceType + " Discovery failed: Error code:"