Reputation: 832
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 .
Upvotes: 0
Views: 3151
Reputation: 28
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
Upvotes: 1
Reputation: 61351
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.
Upvotes: 1