简体   繁体   中英

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

Ps

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.

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

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.

You can use the emulator console to set emulator speed to 0 (and also delay), but might not be exactly what you are looking for if you want the network to be completely DOWN.

 $ telnet localhost 5554
 network speed 0.01 0.01
 OK
 network delay 1000 1000
 OK
 network status
 Current network status:
   download speed:          10 bits/s (0.0 KB/s)
   upload speed:            10 bits/s (0.0 KB/s)
   minimum latency:  1000 ms
   maximum latency:  1000 ms

This causes most network connections to fail for me (but app still thinks network is UP).

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