jmdns

Performing long running operation in onDestroy

◇◆丶佛笑我妖孽 提交于 2019-12-01 17:19:24
I have a "long-running" cleanup operation that I need to perform in onDestroy() of my Activity . What is the best way to do this? If I use a Thread to do this, my onDestroy() will return immediately; but what happens to the Thread reference? I am looking for advice on any implications/gotchas/trip-wires that I need to be aware of here since I assume that the process will still be alive even after the Activity is destroyed. Background: I am using JmDNS in my app. When the user is done with my app, I want to clean up the JmDNS instance. I do this using the close() method of JmDNS class. However,

apple bonjour for android

岁酱吖の 提交于 2019-11-30 13:31:40
问题 I m looking for an apple bonjour for android. Are there a recommanded jar for this? I googled for an apple bonjour application and I found the Jmdns application http://home.heeere.com/tech-androidjmdns.html. but when running the DEMO application, a bug appear in the launch of the application. here after the Eclipse LogCat: 09-05 13:56:49.926: E/AndroidRuntime(13243): java.lang.NoClassDefFoundError: javax.jmdns.JmDNS 09-05 13:56:49.926: E/AndroidRuntime(13243): at com.heeere.android.dnssdtuto

apple bonjour for android

流过昼夜 提交于 2019-11-30 07:57:28
I m looking for an apple bonjour for android. Are there a recommanded jar for this? I googled for an apple bonjour application and I found the Jmdns application http://home.heeere.com/tech-androidjmdns.html . but when running the DEMO application, a bug appear in the launch of the application. here after the Eclipse LogCat: 09-05 13:56:49.926: E/AndroidRuntime(13243): java.lang.NoClassDefFoundError: javax.jmdns.JmDNS 09-05 13:56:49.926: E/AndroidRuntime(13243): at com.heeere.android.dnssdtuto.DnssdDiscovery.setUp(DnssdDiscovery.java:44) 09-05 13:56:49.926: E/AndroidRuntime(13243): at com

JmDNS service discovery in client-server

南笙酒味 提交于 2019-11-30 03:54:36
I'm trying to enable service discovery in my client-server application using JmDNS. I fully understand service registry on the server side, with code that resembles this: JmDNS jmdns = JmDNS.create(localhost); jmdns.register(serviceInfo); However, I'm having trouble figuring out how to have my client retrieve the port number and IP address from the registered service and use this data to open a TCP connection. I've searched for examples of how to use JmDNS but to no avail. Can anyone here give me some basic examples? Or if anyone has any links to good resources/tutorials on JmDNS could they

Bonjour implementation on Android

こ雲淡風輕ζ 提交于 2019-11-29 20:27:22
I am trying to implement bonjour/zero conf on my android app. I am using jmDns library for searching the all the available devices. Here is the code that I am using for searching the devices in the same network: public class ListDevices extends ListActivity { JmDNS jmdns; JmDNSImpl impl; MulticastLock lock; protected ServiceListener listener; protected ServiceInfo info; public ListView lv; public ArrayList<String> deviceList; public int cancel = 0; public final static String TAG = "ListDevices"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle

Bonjour implementation on Android

人盡茶涼 提交于 2019-11-28 16:29:09
问题 I am trying to implement bonjour/zero conf on my android app. I am using jmDns library for searching the all the available devices. Here is the code that I am using for searching the devices in the same network: public class ListDevices extends ListActivity { JmDNS jmdns; JmDNSImpl impl; MulticastLock lock; protected ServiceListener listener; protected ServiceInfo info; public ListView lv; public ArrayList<String> deviceList; public int cancel = 0; public final static String TAG =

Multicast on Android 2.2

白昼怎懂夜的黑 提交于 2019-11-28 05:28:54
Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a bug in the bug tracker that indicate it was fixed, and closed, for 2.2 ( http://code.google.com/p/android/issues/detail?id=2323 ) . I've tried the "TuneControl" source code, but that worked on ~1.5 and has not been updated, and does not work for me on 2.2. So, the questions... 1) Has anyone seen multicast work on 2.2, specifically JmDNS, and

Is Android NSD (Network Service Discovery) compatible with Bonjour service in iOS?

那年仲夏 提交于 2019-11-27 12:14:32
问题 I will create a server-less local networking App for iOS and Android. the App in both iOS and Android devices should find out and talk to each other. I know that there are platform built-in services (which are Bonjour in iOS and NSD in Android since v4.1), in addition, a open source jmdns package can be used out of the box as well. I don't know how to choose and how is their compatibility. My questions are: Is Android NSD (network service discovery) compatible with Bonjour in iOS? What should

Multicast on Android 2.2

喜欢而已 提交于 2019-11-27 01:02:06
问题 Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a bug in the bug tracker that indicate it was fixed, and closed, for 2.2 (http://code.google.com/p/android/issues/detail?id=2323) . I've tried the "TuneControl" source code, but that worked on ~1.5 and has not been updated, and does not work for me