Questions tagged [nsdmanager]
12 questions
11
votes
3 answers
NSdManager ResolveListener Error Code 3: Failure Already active
I'm using NsdManager in an Android App to discover NSD services published by another device also developed by me. I only do service discovery on Android App (no service registration needed on this side). There are several instances of the same type…

DarkJediNinja
- 495
- 6
- 10
4
votes
1 answer
NsdManager discovery does not work on Android 9
I have tried for a good time now to get the NsdManager discovery function to work on Android 9. It works on any Android version prior to that without any problems.
For testing purposes I use this simple code snippet and there is a permission for…

pazi
- 251
- 2
- 8
3
votes
1 answer
Android NsdManager not able to discover services
I'm running into a problem with Androids NsdManager when following their tutorial Using Network Service Discovery.
I have a few zeroconf/bonjour hardware devices on my network. From my mac I can discover all of them as expected from my terminal…

zafrani
- 4,030
- 5
- 31
- 39
2
votes
1 answer
Retrieving NsdManager always leaks Activity
While profiling my app, I found, that retrieving the NsdManager by using
nsdManager = (NsdManager) getSystemService(Context.NSD_SERVICE); // LEAKS!
is leaking the Activity, while
nsdManager = (NsdManager)…

roplacebo
- 2,837
- 2
- 17
- 19
2
votes
0 answers
NsdManager discovers, immediately loses and re-discovers same service after WiFi is re-enabled on Android phone
In my Android app I have to show a list of available services on the network published by another machine (RPi 3B con Raspbian Stretch) using avahi 0.6.32 (Bonjour/zeroconf daemon for Linux). I obtain the list on Android phone using NsdManager.…

DarkJediNinja
- 495
- 6
- 10
2
votes
0 answers
NsdManager never discover any services on Google Pixel 3 (Pie)
Same code works on Samsung S8 and Sony XZ, but not on Google Pixel 3.
I start the discovery with NsdManager with:
nsdManager.discoverServices("_test_service._tcp.", NsdManager.PROTOCOL_DNS_SD, discoveryListener)
The discoveryListener gives…

Lalle
- 676
- 12
- 30
1
vote
0 answers
Get scope id/network interface of NsdServiceInfo of a link-local IPv6 service
I want to connect to a link-local IPv6 service represented by an NsdServiceInfo. The service is announced in the LAN via zeroconf. Therefore I need the scope ID in addition to the IP (i.e. to create "%"). However, I could not find a…

Wave
- 61
- 6
1
vote
1 answer
Kill Network Service Discovery from AsyncTask when done without leaks
I am trying to simply find a device with mDNS, save the IP and kill the "Network Service Discovery"(NSD) once done.
NSD and AsyncTask are in conflict here.
Getting the IP with NSD works but if the AsyncTask is not static it warns of Leaks.
If…

user1213320
- 650
- 1
- 6
- 13
1
vote
0 answers
Android NSD Manager Service Registartion
I am using NSD Manager in android app to register a service .
But service registration is happening successfully sometimes and sometimes it doesnt happen even for minutes. For the times it doesn't successfully register the service the…

Saransh
- 109
- 1
- 8
0
votes
1 answer
How to change SRV record format
I registered service using NsdManager:
public void RegisterService(string serviceName, int port, Dictionary attributes, string serviceType = "_itxpt_http._tcp.")
{
var serviceInfo = new NsdServiceInfo()
{
…

Serlok
- 432
- 1
- 10
- 24
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
-1
votes
1 answer
Android NsdManager resolve return errorCode 0
I want to resolve an IPaddress of a custom IOT device(esp8266) with an Android device.
After some research I think there are two great options to do this. First option is the android NsdManager. The second option is Android mDNSResponder.
I prefer…

Erik
- 427
- 6
- 14