I think you should be able to determine which network to use with the
ConnectivityManager class. You can set a network type preference
(TYPE_MOBILE or TYPE_WIFI). That class also lets you get information
about all, or each network.


John


On May 11, 8:02 pm, Joseph Teo <josephteo2...@gmail.com> wrote:
> Hi Folks,
>
> I'm working on some data transmission program and current it works alright
> on WIFI connection.
>
> However, I understand that if I am in an environment where there are both 3G
> and WIFI coverage... the phone will (by default) be turned onto the WIFI
> network connection.
>
> However, if for some reasons, I wish to be connected directly to 3G (e.g. 3G
> is more stable in public WIFI area).... is it possible to do so
> programatically on the Android phone? If i'm not wrong, it's possible using
> the ConnectionManager API, am I right?
>
> May i ask if anyone has done something like that and  don't mind sharing the
> code snippets to do so , or point me to the right direction for this?
>
> Many Thanks in Advance!
>
> Joseph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to