With Android 2.2 you can route data over the 3G connection explicitly
while still using WiFi. The feature exists in Android 2.1 also but is
*broken* as the high-priority 3G data connection is torn down
incorrectly almost directly.

Look into the ConnectivtyManager#startUsingNetworkFeature(TYPE_MOBILE,
ENABLE_HIPRI) combined with a BroadcastReceiver for the
ConnectivityManager.CONNECTIVITY_ACTION. After the HIPRI connection is
made you need to explicitly route the data using
ConnectivityManager#requestRouteToHost(TYPE_MOBILE_HIPRI, int).

On 13 Juli, 20:07, Mark Murphy <[email protected]> wrote:
> On Tue, Jul 13, 2010 at 2:01 PM, RickB <[email protected]> wrote:
> > We have an application where we'd like to use the Wifi connection on a
> > local network (intranet) with no Internet connectivity, and use the 3G
> > connection simultaneously as the data connection to the internet.
>
> Like the WiFi hotspot built into Android 2.2.
>
> > To summarize:
>
> > - We need to connect to two distinct networks at the same time
> > - We need data traffic to be properly routed to the appropriate
> > network based on its IP address
> > - We need both radios (Wifi and 3G) on and active
>
> > This can easily be done on the iPhone, but not sure if it can be done
> > on the Android.  Any info/insights welcomed.
>
> AFAIK, at the SDK level, Android only supports one active connection
> at a time. Custom firmware can clearly arrange for multi-radio
> support, as the WiFi hotspot in 2.2 demonstrates.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 2.2 Programming Books:http://commonsware.com/books

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