Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet connection in android emulator

I have no idea, what am i doing wrong

I want to turn off internet connection in emulator (Android 2.2)

I'm pressing F8 -> no effect, i still have internet connection

I turn airplane mode -> no effect, i still have internet connection.

I go to settings for check, airplane mode is on, wifi is off, but there is internet connection on device.

What is wrong?!

Please, don't suggest to turn off internet on my computer. I know, it's the solution for sure, but not the best one

P.s.

It is probably the bug http://code.google.com/p/android/issues/detail?id=3838

I tried to disable connection in emulator for android 1.5 and it works fine there.

like image 970
Tima Avatar asked May 05 '11 14:05

Tima


People also ask

How do I connect my Android emulator to the internet?

If your emulator must access the internet through a proxy server, you can configure a custom HTTP proxy from the emulator's Extended controls screen. With the emulator open, click More , and then click Settings and Proxy. From here, you can define your own HTTP proxy settings.

How do I enable Wi-Fi on my emulator?

You can disable the Internet connection by pressing F8 in any Android emulator. It is a toggle button, so if it doesn't have Internet connection then it will start the Internet connection and if it already has an Internet connection then it will dis-connect it.

Does Android emulator support Wi-Fi?

The Android UI is pretty simple, if your connected to Wifi it shows in the notification bar, it can also show your cellular connectivity at the same time depending on what has happened. All you have shown is that you can use the emulator on a wifi connected host machine, which is not what this question was asking.


2 Answers

Open the DDMS perspective under Eclipse and set the denied/unregistered value for the voice and the data

like image 116
Moystard Avatar answered Nov 05 '22 15:11

Moystard


It is probably the bug http://code.google.com/p/android/issues/detail?id=3838

I tried to disable connection in emulator for android 1.5 and it works fine there.

like image 24
Tima Avatar answered Nov 05 '22 15:11

Tima