Simulate network failure on Android
        Posted  
        
            by twk
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by twk
        
        
        
        Published on 2010-04-16T16:56:48Z
        Indexed on 
            2010/04/17
            8:13 UTC
        
        
        Read the original article
        Hit count: 648
        
android
|android-emulator
I've noticed when I switch from wifi to 3g on my Android phone that HTTP connections get killed. I'd like to simulate this error in an emulator for testing. Changing network speeds doesn't work, nor does turning on airplane mode (I've tried this on a 1.5 and a 2.1 AVD).
Any ideas? I'm currently doing this by running my conns through Fiddler and manually killing them, but it would be nice to use something built into the Android dev system.
Thanks
© Stack Overflow or respective owner