How to simulate network issues on a Android device?

Viewed 3961

I need to test my app in following scenario:

  • connect device to wifi (with the internet).
  • simulate internet interruption (lack of the internet but the device must stay connected to the wifi network).
  • after few seconds the internet need to be active again.

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?

4 Answers
Related