androidnsd

What do the errorCodes mean for Android NSD onResolveFailed()


Android Network Service Discovery provides us with an onResolveFailed() callback, like so:

NsdManager.ResolveListener mResolveListener = new NsdManager.ResolveListener() {

    @Override
    public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {
        // Called when the resolve fails. Use the error code to debug.
        Log.e(TAG, "Resolve failed " + errorCode);
    }
};

In my case, I get errorCode 3.

What do these erorCodes stand for and where would I find that specified?


Solution

  • It's right there in the documentation you link to

    enter image description here