problem about jmdns-Collection of common programming errors


  • Hyunwoo Nam
    android eclipse jmdns
    My code worked but it does not work suddenly. The code is as follows.public class AndroidDnssdDiscoveryTestActivity extends Activity { /** Called when the activity is first created. */android.net.wifi.WifiManager.MulticastLock lock; android.os.Handler handler = new android.os.Handler(); final Context context = this; AlertDialog alert=null;public void onCreate(Bundle savedInstanceState) {/** StrictMode.ThreadPolicy was introduced since API Level 9 and the default thread policy had been changed si

  • user268397
    android jmdns
    I’m trying to list some JmDNS services that I discover in my Android app and whenever I call this method my app crashes in the emulator? I tried commenting out blocks of code and code inside methods and it still crashes on the emulator. Anybody have any ideas? import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.

  • yorkw
    java android jar classpath jmdns
    Hopefully my issue isn’t too silly but I’m having the following problem…I’m importing a jar which contains the library JmDNS into my project. My project sets up to handle JmDNS like this…setUp();try {peer = new PublicPeer(“Aidan”,6666,6667,this);} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}private void setUp(){android.net.wifi.WifiManager wifi =(android.net.wifi.WifiManager)getSystemService(android.content.Context.WIFI_SERVICE);lock = wifi.createMulticastLo

  • mizo
    android jmdns
    For some reason it doesn’t like the getInetAddresses() method in the lines:Enumeration additions = (Enumeration) ev.getInfo().getInetAddresses(); if (ev.getInfo().getInetAddresses() != null && ev.getInfo().getInetAddresses().length > 0) {additions = ev.getInfo().getInetAddresses()[0].getHostAddress(); }import java.io.IOException; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Enumeration;import javax.jmdns.JmDNS; import javax.jmdns.ServiceEvent; impor

  • Seva Alekseyev
    android dependency-management jmdns
    I’ve added jmDNS 3.4.1 to my Android project. Copied the JAR under lib, then under “Java BuildPath”/Libraries added a reference.Now my build fails with the following message in Console:[2012-07-27 22:59:07 – Yarxi] Dx UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/strangeberry/jmdns/tools/Browser$1; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)at com.android.dx.dex.file.DexFile.add(DexFile.java:163)at com.android.dx.command.d

Web site is in building