title: Android Socket Connection
body: <p>I'm guessing this will be such a newbee question but I hit a wall and...</p>
  
  <p>I am running the <a href="http://jwebsocket.org" rel="nofollow noreferrer">jWebSocket</a> stand-alone server. For a client I am using <a href="http://code.google.com/p/weberknecht/" rel="nofollow noreferrer">Weberknecht</a> And Eclipse is my IDE of choice.</p>
  
  <p>Now, when I start the server and run the Weberknecht client like a normal Java application I get a connection. Granted, the connection is quickly dropped because the handshake needs to be configured but at least the server shows me a connection was attempted.</p>
  
  <p>However, when I use the exact same code in my hello world Android app I get nothing :(
  I am also not seeing any console outputs even thought I used both Log.i and Log.v</p>
  
  <pre><code>Log.i(TAG, "YEI! connectToWS 1!");
  Log.v(TAG, "YEI! connectToWS 1!");
  </code></pre>
  
  <p>Maybe I am calling the connect method in the wrong place?</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      connectToWS();
  ...
  </code></pre>