Code example for NsdServiceInfo

Methods: getServiceName

1
			@Override 
			public void onStopDiscoveryFailed(String serviceType, int errorCode) {
				Log.e(TAG, serviceType + " Discovery failed: Error code:"
						+ errorCode);
				mNsdManager.stopServiceDiscovery(this);
			} 
		}; 
	} 
 
	public static void initializeResolveListener() { 
		mResolveListener = new NsdManager.ResolveListener() {
 
			@Override 
			public void onResolveFailed(NsdServiceInfo serviceInfo,
					int errorCode) {
				Log.i(TAG, "Resolve failed" + errorCode);
			} 
 
			@Override 
			public void onServiceResolved(NsdServiceInfo serviceInfo) {
				Log.i(TAG, "Resolve Succeeded. " + serviceInfo);