I'm trying to implement a simple android application that broadcasts a WifiP2p bonjour service on one device and have a second device discover and connect to it. I've pretty much followed the tutorial here.
I have a valid Channel
object, a DnsSdServiceResponseListener
, and a DnsSdTxtRecordListener
, and set them via this call:
mManager.setDnsSdResponseListeners(channel, servListener, txtListener);
As of right now both listeners just spit out some debugging info to keep it real simple.
The problem is that my DnsSdServiceResponseListener
is never called, but the DnsSdTxtRecordListener
does get called and all the arguments passed in look legit. How can one be called but not the other?
I am testing using two actual devices, both running android 4.2.2.
Thanks!