Questions tagged [nsd]

Network Service Discovery (NSD) allows the identification of devices on the local network that support the services your software requests.

Network Service Discovery (NSD) allows the identification of devices on the local network that support the services your software requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming. Devices have software that can broadcast its name and connection information to the local network and scan for information from other applications doing the same.

76 questions
0
votes
0 answers

Storing data from java built-in classes to custom class

I have a task where I get information about service using NsdServiceInfo class such as name of service, host, port,IP address and displaying some of in the custom array adapter, however the information which I get from NsdServiceInfo it is not…
Grace
  • 11
  • 4
0
votes
0 answers

Displaying only service name NSD network service discovery Android

I have this question again about NSD, this time I would like to ask ask if anybody know how to display only service name without all the details like port, host, service type.So far I managed to display all services using ArrayList and…
Grace
  • 11
  • 4
0
votes
0 answers

How to place NSD results in listview adapter in Android

I used Network Discovery Services to look for specific device services in the network. I managed to get the device with IP address, port, service type and name and I would like to put that information in the listview , could anyone recommend me how…
Grace
  • 11
  • 4
0
votes
1 answer

Network Service Discovery: empty NsdServiceInfo in onServiceRegistered()-Callback of the RegistrationListener

When I register a service, following the guidelines from android developers, the NsdServiceInfo-Object does not contain all the information it should contain after the service was registered. mRegistrationListener = new…
Niklas Dada
  • 311
  • 4
  • 17
0
votes
1 answer

NSD missing NSDManager in DiscoveryListener-callback, when calling resolveService

I want to exchange data between android devices, therefore NSD should be used to find other devices. I followed the example on Android Developers The service is registered successfully on the network by the server-device, the client-device recognize…
Niklas Dada
  • 311
  • 4
  • 17
0
votes
1 answer

Android NSD (Network Service Discovery) registration listener already in use

Anyone face the same error and can resolve it? java.lang.IllegalArgumentException: listener already in use at android.net.nsd.NsdManager.registerService(NsdManager.java:485) NsdServiceInfo serviceInfo = new…
Amos
  • 2,222
  • 1
  • 26
  • 42
0
votes
2 answers

NSD Android - Network discovery

Hello I am new to Android Development. I have created an NSD Utility class. Currently its unable to call the method DiscoveryListner. Any help will be great MainActivity package com.example.android.implicitintents; import…
Aarth Tandel
  • 1,001
  • 12
  • 32
0
votes
1 answer

How to get list of all devices connected to same network using NSD

I am working with NSDManager in android. How this DiscoveryListener can be used to fetch all the devices. Here in documentation given the approach of finding the services but how to implement them in android studio. I had tried something using this…
Rognik
  • 145
  • 13
0
votes
1 answer

Showing null when using Network Service info in NSD

To discover the list of services using NSDManager class I had implemented some code with google reference but I cannot get the host address when I try to discover the services. It is showing null when Discovery started. I had referred this link for…
Rognik
  • 145
  • 13
0
votes
1 answer

How to get list of InetAddress in Network Service Discovery?

Hi friends I am using NETWROK SERVICE DISCOVERY in android app to find service type "_dockset._tcp". I am successfully getting device list but I am unable to get list of InetAddres of all devices. I am only getting InetAdress of first discovered…
0
votes
1 answer

Android NSDService discovery onServiceResolved get wrong port number

I have a problem of getting the registered services port numbers. Actually my application registers a service with port xxxx (e.g 40206), and the registration is done successfully. On the other device, when I registered discovery to discover all of…
Amjad Omari
  • 1,104
  • 3
  • 15
  • 40
0
votes
1 answer

How to reconnect client with previous Client port and IP with server

I'm creating a chat application in Android using NSD(Network service disovery) . My question is how to reconnect Client with previous Client ip and port. Example : Client ip and port when it connects to server first…
0
votes
1 answer

How can a printer discovered via NsdManager get added to the PrintService?

I am trying to implement a PrintService. I am using Network Service Discovery (NSD) to find the printers (c.f. https://developer.android.com/training/connect-devices-wirelessly/nsd.html, etc) Both the NsdManager.DiscoveryListener and the…
Robert R Evans
  • 177
  • 1
  • 11
0
votes
0 answers

Android NSD and socket connection with multiple devices at the same time

Currently I am developing a multiplayer game for Android which can be played between 4 players. The online module with Socket.IO and Node.js in fully functional. Now i'm into developing the same via Wifi or Hotspot. With the help of NSD I did…
shine_joseph
  • 2,922
  • 4
  • 22
  • 44
0
votes
0 answers

Failed NsdManager Registration

Problem: Short Description: I'm attempting to register a service & port visible to my PC for later connection to a PC application. This code does not register the service and I am unable to tell why, all I know is that when it runs on my phone…
Eweb
  • 71
  • 1
  • 12