简体   繁体   中英

Simulate no internet on android emulator

How to simulate no internet on the emulator apart from disconnecting my computer, I still want to be connected via browser etc.

Setting the signal strength to none doesn't seem to stop apps from getting an internet connection.

You can try airplane mode by tapping the relevant icon in the notification tray:

飞机模式设置

You might also try hitting F8 to "Toggle Cell Network" in the emulator although you may need to manually reconnect ADB after this procedure.

As mentioned, airplane mode is an obvious answer. Another good way is to run it through a proxy such as fiddler, which would allow you not just to turn off the connection but to fake a bad connection with high packet loss or latency and see how you work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM