Questions tagged [nsd]
Network Service Discovery (NSD) allows the identification of devices on the local network that support the services your software requests.
78
questions
0
votes
0
answers
16
views
Used NSD to connect android mobile and TV. when I sent a message to TV, connection refused error came
I am trying to connect my mobile and Tv emulator. My mobile and pc connected to the same wifi. By discovering the devices from mobile. I got resolved the host and port. But I can't send the message ...
2
votes
0
answers
167
views
NsdManager resolveService is deprecated
In my Android application, I employ the NsdManager to discover nearby services and establish connections with them. However, when utilizing an Android 13 device, I encounter a recurring issue during ...
1
vote
0
answers
49
views
Occasionally DiscoveryListener.onServiceFound() not called on individual devices
My android app discovers servers on the network using the android.net.nsd package. This works well for about 98% of my users. For the remaining 2%, however, DiscoveryListener.onServiceFound() ist not ...
1
vote
1
answer
366
views
A Bonjour service that was discoverable in Android 13 is not discoverable in Android 14 using same codes with NsdManger
The codes have already used the method of acquiring multicastLock to receive multicast messages, most of the services can be found, but there are a few services with the same service type that cannot ...
2
votes
1
answer
363
views
I'm experiencing difficulty with network service discovery (NSD) in my android project as I sometimes can't obtain an IP address
I am using the NSD (Network Service Discovery) NsdManager.DiscoveryListener to discover services on the network. However, in the onServiceFound method, I am sometimes unable to retrieve the IP address ...
1
vote
0
answers
287
views
Android NSD can't resolve the mDNS service in Windows
I need android discovery the service in the windows。 I use nsd service in android app which as client. And i note that windows started supporting mDNS/DNS-SD in window 10, so i use the api ...
2
votes
0
answers
524
views
How to query an mDNS-enabled server over HTTPS with Android?
I've got an issue trying to make 2 devices communicate over HTTPS on a LAN because of Android's lack of support for mDNS.
Put simply, I'm developing and Android app (the client) that'll send HTTPS ...
0
votes
1
answer
641
views
NI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.RuntimeException
I want to build an app using C++ and Java by JNI in the platform of Qt, I tried to do the code below:
c++
#include "musiclist.h"
#include <QAndroidIntent>
#include <...
1
vote
0
answers
2k
views
JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending exception java.lang.NullPointerException
Please I want to build an NSD ( network services discovery) app, using Jni with Qt, But I get the following error:
JNI DETECTED ERROR IN APPLICATION: JNI GetStaticMethodID called with pending ...
0
votes
0
answers
19
views
non-static variable discoveryListener cannot be referenced from a static context [duplicate]
I want to understand why this problem take place while calling Nsdmanager from a static method, here below the code
public void initializeDiscoveryListener() {
// Instantiate a new ...
0
votes
1
answer
372
views
NsdServiceInfo does not contain attributes on Android 6.0
On an Android application which should work on Android 6+, I am trying to use network service discovery in order to check if some devices are available on my network.
Base on this part of the official ...
0
votes
2
answers
711
views
NSD discovering services android
Task description:
I intend to build an app that can discover services given by ESP32 in my Network using NSD android, so I implemented the code below
Code:
import android.net.DhcpInfo;
import android....
0
votes
1
answer
202
views
How to change SRV record format
I registered service using NsdManager:
public void RegisterService(string serviceName, int port, Dictionary<string, string> attributes, string serviceType = "_itxpt_http._tcp.")
...
2
votes
1
answer
110
views
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 = (...
0
votes
0
answers
487
views
Promote IPv6 address with Android NSD instead of IPv4 address
I successfully registered a service in my App which I can see on my Generic Linux device using the command line tool avahi-browse. What I wonder is the following: why does avahi-browse does show the ...