Android maintains one type of data connection at a time - either Wifi or cellular (which can vary: CDMA / EDGE / HSDPA, etc).

You can obtain current connection info:

http://developer.android.com/reference/android/net/ConnectivityManager.html

and be notified when connectivity type and/or availability changes (see "android.net.conn.CONNECTIVITY_CHANGE" in the link above).

To my knowledge, existing network connections don't automatically fail over, and this includes http connections (which is what I'm guessing you are asking about).

The reason for this that Wifi and cellular data connections can belong to entirely unrelated networks, and doing graceful failover would require notifying the other endpoint about the phone's new address.

-- Kostya

16.07.2010 15:24, Lieuwe пишет:
Hi,

I have some code that uses a network connection .. I create a
connection by calling openConnection() on a URL object.

Is there any documentation that explains how this process works? Which
access point is being used? When that access point becomes invalid,
will it automatically switch to another accespoint? etc.

I would like to use only WIFI access points and otherwise fail even
tho 3G or GPRS could be available, is that possible?

Lew



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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