3

I want to test my app when it is disconnected from network (Internet connection). How to simulate the scenario in which phone doesn't have an Internet connection?

Mangesh
  • 5,491
  • 5
  • 48
  • 71
  • 1
    Have you tried to turn on the *Airplane mode*? Is it sufficient? – Romasz Mar 04 '15 at 05:46
  • @Romasz: Airplane mode is not the right way of doing it. What if I need mobile-network if internet is not available? Probably to send SMS instead of message from my app? – Mangesh Mar 04 '15 at 06:23
  • 1
    I'm aware of that, that's why I've asked if it's suffiectent for you. In some cases this can be a fast way to check the situation 'no any network'. – Romasz Mar 04 '15 at 06:28

1 Answers1

4

Do the following steps:

  1. Go to Network tab of the emulator's Additional Tools.
  2. Check Enable Network Simulation to test your app with different network speeds and different signal strengths.
  3. In the Network Speed dropdown list, select the option: No network
  4. Click Refresh
Mangesh
  • 5,491
  • 5
  • 48
  • 71
Utsav Dawn
  • 7,896
  • 2
  • 29
  • 44