Code example for NsdManager

Methods: resolveService

0
                    Log.d(TAG,
                            "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) {