I am using Genymotion Emulator with Nexus s and 4.2.2.

Previously i used regular AVD that we can create using Eclipse provided by ANDROID SDK.

In regular AVD we can enable/disable data packet access to internet by using

Settings->Wireless&Networks->Data Enabled

Or by pressing F8 key but i am unable to found it in Genymotion emulator.

Where i can find it?

有帮助吗?

解决方案

You cannot do that on Genymotion.

If you want to test what your application will do without internet access, you can unplug your ethernet cable or switch off your Wi-Fi. It's not the same but could still help to test your app.

其他提示

I hade this problem.

If you disable the internet and try to debug your app, the app will not be able to connect to vs code debug server.

This what you should do.

1- in your emulator, click Debug/settings and change the ip:port to the following localhost:your port eg 5555

2- disable the wifi and your app will start without internet but still able to connect to vs code

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top