Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 288
ir2pid Avatar asked Feb 11 '18 00:02

ir2pid


People also ask

How do I disable Internet on emulator?

Just hit the F8 key to enable or disable the Internet connection.

Do emulators work without Internet?

Sure, you can use android emulator offline. Almost all the features are included in the emulator to be used offline. You'll just need to go online when you want internet connectivity in the Apps you are testing on your emulator.


1 Answers

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

Airplane Mode Setting

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

like image 165
torchhound Avatar answered Oct 14 '22 01:10

torchhound