title: MQTT with Android
body: <p>I'm trying to publish a message via MQTT. So I created a blank Android app and added the Paho MQTT library to it.</p>
  
  <p>This is the line of code I execute first:</p>
  
  <pre><code>MqttClient client = new MqttClient("tcp://192.168.178.34", "Foo");
  </code></pre>
  
  <p>This throws an "MqttException" which contains no message, no error code, no nothing. So currently I have no idea what's going wrong.</p>
  
  <p>I also added the following permissions to my app:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  </code></pre>
  
  <p>Can anyone give me a hint what I could be doing wrong here?</p>