title: Android 4.0 Socket problems
body: <p>Well, Android 4.0 doesn't allow networking on UI thread.
  So I made a new thread.</p>
  
  <pre><code>public class NetThread extends Thread {
      BukkitController bc;
      Socket sock;
      ObjectOutputStream outstream;
      ObjectInputStream instream;
      boolean loaded=false;
      String ServerIP="192.168.123.103";
      String id="ssw";
      String pw="ssw";
      ArrayList&lt;String&gt; plist=new ArrayList&lt;String&gt;();
  public void run(){
      try {
          sock=new Socket(ServerIP,3560);
          outstream=new ObjectOutputStream(sock.getOutputStream());
          instream=new ObjectInputStream(sock.getInputStream());
          //LOGIN
          outstream.writeObject("SIGN "+id+" "+pw);
      } catch (Exception e){}
          Object tmp;
          try{
          outstream.writeObject("PLIST");
          plist=(ArrayList&lt;String&gt;) instream.readObject();
          } catch ( Exception e){
          }
  
  
      loaded=true;
      while(true){}
  }
  public void Write(String msg){
      try {
          outstream.writeObject(msg);
      } catch ( Exception e){
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And in the UI thread, I made the object :</p>
  
  <pre><code>m_nt=new NetThread();
  m_nt.start();
  </code></pre>
  
  <p>After testing with LogCat, I found that the source stops at:</p>
  
  <pre><code>sock=new Socket(ServerIP,3560);
  </code></pre>
  
  <p>How can I solve this?
  I had no error, just frozen there.</p>