dns-sd

Android P2P service discovery callbacks not being called

六月ゝ 毕业季﹏ 提交于 2019-12-01 07:28:16
问题 I'm fairly new to Android and I'm working on an application that will exchange data over WIFI direct and I would like to use DNS Service Discovery instead of pure P2P discovery to get more useful information like device "nick names" etc. So far I've followed the tutorials at http://developer.android.com/training/connect-devices-wirelessly/index.html and read through the documentation. My application seems to register it's local service successfully and the onSuccess callback from

Wifi P2P service discovery works intermittently

烂漫一生 提交于 2019-11-28 15:54:30
Wifi P2P service discovery is not behaving as expected. I am seeing intermittent issues where the DNSSD listeners are not called always and hence I have no clue of nearby devices running the same app. I am using the following two APIs - one to register a service to be discovered by other devices and the other to discover the nearby services running on other devices. Any idea if I am doing anything wrong here or is there some specific sequence of other android API calls that need to be made before I call these APIs to ensure that the listeners are always called whenever there is a new service