I'm trying to implement a simple Android application that will transfer the Bonjour WifiP2p service on one device and open the second device and connect to it. I pretty much followed the tutorial here .
I have a valid Channel object, DnsSdServiceResponseListener and a DnsSdTxtRecordListener , and set them through this call:
mManager.setDnsSdResponseListeners(channel, servListener, txtListener);
As of now, both listeners simply spit out some debugging information to keep it simple.
The problem is that my DnsSdServiceResponseListener never called, but the call to DnsSdTxtRecordListener calls the call, and all the arguments passed to the field look legal. How can you call, but not another?
I am testing using two real devices running Android 4.2.2.
Thanks!
Greg schnie neiheisel
source share