Question

I went through the below links http://mirror.yongbok.net/linux/android/repository/external/mdnsresponder/ to get the apple mdns responder cross compiled on the android ndk . but I cloud not get the build it . got the below error .

make: Circular obj/local/armeabi/libmdnssd.so <- obj/local/armeabi/libmdnssd.so dependency dropped. SharedLibrary : libmdnssd.so arm-linux-androideabi-g++: ./obj/local/armeabi/libmdnssd.so: No such file or directory

If any one has cross built it for android pls help .

Was it helpful?

Solution

I think here you are looking for jmdns.listbysubtypes . You can try this for browsing subtypes

map mp = jmdns.listbysubtypes(_smartplace._tcp.local)

you can try this , once you get it then u can play with map object

OTHER TIPS

There's an Android-friendly implementation of Bonjour called JmDNS. Feel free to download and integrate on the Java side.

Implementation is not exactly straightforward. There's the wrinkle with explicitly enabling multicasts over WiFi (look it up), and the JAR that's hosted on SourceForge is no good. But StackOverflow is full of guidance and samples.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top