title: Android - Paho Mqtt client does not receive messages once network connectivity changes (mobile data disabled and enabled again)
body: <p>I am using Mosquitto Mqtt along with paho API to receive push messages on android device. But as soon as the network connectivity changes it stops receiving messages. Here are the steps to reproduce the issue with simple test case:</p>
  
  <p>1) Create a simple activity.</p>
  
  <p>2) On Activity StartUp connects to mosquitto test server (test.mosquitto.org:1883) through paho API.</p>
  
  <p>3) Subscribe to some topic.</p>
  
  <p>4) Publish some message to the topic.</p>
  
  <p><strong>Result:</strong> Mqtt Client receives all the messages published to the topic. Now</p>
  
  <p>5) Disable internet connection on the mobile (mobile data)</p>
  
  <p>6) Publish some message to the topic.</p>
  
  <p>7) Reconnect internet.</p>
  
  <p><strong>Result:</strong> Client Does not receive any message published after internet connection was disabled.</p>
  
  <p>As <em>KeepAliveInterval</em> has been kept to high value (30 minutes), it should receive all messages after reconnecting to the internet.</p>
  
  <p><strong>The same use case (same code) is working for simple java project (non-android) where I disable internet on my laptop to run the use case.</strong></p>
  
  <p>Any idea why it is not working on android device??? Am I missing something?</p>
  
  <p><strong>Note:</strong></p>
  
  <p>1) Using mqtt-client-0.4.1</p>
  
  <p>2) Android target API level 11</p>
  
  <p>3) Not putting device to sleep mode during the test.</p>
  
  <p>4) Does not get any call in connectionLost callback and all the 4 threads of mqtt callback are running throughout the test case i.e connection the the mosquitto server is intact.</p>