How can I enable WiFi on an AVD? I am emulating the Android version 2.3.3 API 10 and when I click WiFi in the phone settings menu it just says 'error'.
You should just be able to connect your computer to wifi and then the emulator will use your computer's wifi connection. The AVD is just an emulation of an android device. The AVD uses your computer's hardware to simulate the hardware of a real device the best that it can.
The AVD will also be 'connected to 3G/4G' if you are connected through Ethernet.
When I tried this myself on my own editor, it appears that you can't enable wifi on the emulator, it will always be set to '3G' or '4G'. If you want to enable Wifi for development purposes, you should just use a real device. There is no way to enable wifi on the android emulator. This question has been asked on StackOverflow: