I'm developing an app that uses wifi to control an application on other machine on my LAN. The LAN has no internet connection, so I would like my phone (Nexus S 4G) to use the cellular connection as the default route, even though it has an active wifi connection. I understand that the phone is going to generally prefer wifi due to improved speed and to avoid excessive mobile data usage, but in this case, the wifi link is only for local LAN traffic, so I'd like to override this behavior and send internet traffic through the 3G interface.
I found what I thought was a promising thread here: http://groups.google.com/group/android-developers/browse_thread/thread/a2b9fd6b28c445d9/12a231cf1fbd66fd however, I tried the suggestion (adding cm.test.mode=true to build.props) and it didn't help. I also tried ifconfig rmnet0 up followed by ip route add default via [WAN ADDRESS] dev rmnet0 but that didn't work either. It seems to me that something else is going on where the Android OS is disabling the 3G network device whenever wifi is active. Is this the case, and if so, what can I do about it so I can use the 3G data connection while the wifi is active? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

