title: How to simulate network issues on a Android device?
body: <p>I need to test my app in following scenario:</p>
  
  <ul>
  <li>connect device to wifi (with the internet).</li>
  <li>simulate internet interruption (lack of the internet but the device must stay connected to the wifi network).</li>
  <li>after few seconds the internet need to be active again.</li>
  </ul>
  
  <p>I could simulate this pulling the adsl cable out of my ruter, but then it won't reconnect fast enough.
  Is this any way to simulate this programmatically?</p>