I am trying to create an android app that discovers devices on a network and lists these to the user. From what I understand, the best way of doing this is by using NSD. So, I have attempted to run samples from the official android website but I can't get them to work. I am new to Android and so I was thinking maybe the code on the website is outdated or do I need to install something? (https://developer.android.com/training/connect-devices-wirelessly/nsd.html#java)

Help is very much appreciated. I am also open for tips or advice to do this any other way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.