Since jmDNS does not support the service browse by subtypes, I went with cross compiling the bonjour for android, and I followed the below steps.
- Cross compiled the mdnsresponder for android
- Wrote dns-sd client with jni wrapper that uses the above shared library that has 2 jni functions:
- One for calling the main loop
- Another for browsing the services
- One for calling the main loop
- I have written a java application with the wifi MulticastLock
But when I call the DNSServiceBrowse the error response I am getting is DNS service call failed -65563
, "Background daemon is not running".
Generally while running on the linux we start mdns daemon.
How do I fix this problem? Any suggestions?