When a handset has both the carrier network and WiFi connectivity
available, apps will choose to use WiFi for its http connections,
which makes sense since WiFi is faster.  However, for my app, there
are situations in which I need my app to use the carrier network (and
to go through the carrier's gateways) rather than WiFi even though the
handset is connected to WiFi too.

Anyone know how to do this?

I was thinking maybe ConnectivityManager.setNetworkPreference() would
do it, but it's undocumented so I don't know if and how I should use
it.

By the way, I do know how to use ConnectivityManager to get a list of
networks that are available -- I just don't know how to force a
particular one to be used.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to