Simulate network failure on Android
- by twk
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