Is Android able to use 2 networks interfaces at the same time ?

19 views
Skip to first unread message

André Oriani

unread,
Aug 4, 2009, 4:32:57 PM8/4/09
to android-platform
[moving from android-framework because that group is deprecated]

Every time my application need to establish a data connection it must
always do it using the carrier network.
So suppose Wifi is enabled . User shall be able to use browser and my
application at the same time. Browser might use WIFI, but my
application shall always use the carrier network (GRPS,EDGE, ...).

Is there any ways to tell Android it should always use a certain
network interface for my application?

Mike Lockwood

unread,
Aug 4, 2009, 5:27:27 PM8/4/09
to android-...@googlegroups.com
No, we currently do not have support for that. There is some special
case code for this to handle MMS when Wifi is on, but no general
mechanism for doing this.

Mike
--
Mike Lockwood
Google android team

André Oriani

unread,
Aug 4, 2009, 8:51:08 PM8/4/09
to android-platform


Mike, is this code for MMS on platform/packages/apps/Mms.git ? If so I
can do the same thing

thanks,
André

On 4 ago, 18:27, Mike Lockwood <lockw...@android.com> wrote:
> No, we currently do not have support for that.  There is some special
> case code for this to handle MMS when Wifi is on, but no general
> mechanism for doing this.
>
> Mike
>

Jean-Baptiste Queru

unread,
Aug 4, 2009, 9:14:42 PM8/4/09
to android-...@googlegroups.com
From reading this discussion it's not clear to me what you're trying
to contribute to the Android Open-Source Project, if anything. If
you're developing an application that's not going to be contributed
(either because you're toying around, or as part of your job for an
unnamed company), you'll find that the android-porting list is
actually a more list for such discussion.

Thanks,
JBQ
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

André Oriani

unread,
Aug 4, 2009, 9:29:13 PM8/4/09
to android-platform
okay JBQ-
moving it as you wished !

Mike Lockwood

unread,
Aug 4, 2009, 9:50:09 PM8/4/09
to android-...@googlegroups.com
No, the code to bring up the MMS connection is in various parts of the
framework telephony stack, like GsmDataConnectionTracker.java and
ConnectivityService.java. We have some plans for making this more
general, but I'm not sure if it will be accessible via the public
application API.

Mike

Roman

unread,
Aug 5, 2009, 1:37:59 PM8/5/09
to android-platform
As already mentioned the current platform does not support two radio
interfaces at the same time.

For being able to support this you have to change the framework/
platform code. If you want to support this functionality correctly on
SDK level you have have to implement an extension to support

- select a radio interface
- selection criteria (speed/bandwitdh, costs, signal strength, ...)

This can become very complex if you try to add some more intelligence
to this. Be also aware that the battery is draining much faster.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

André Oriani

unread,
Aug 10, 2009, 10:15:13 AM8/10/09
to android-platform
And what about android.net.ConnectivityManager.requestRouteToHost(int,
int) ? Does it works? It's what MMS calls before any HTTP POST.

dujavi

unread,
Aug 11, 2009, 12:06:33 AM8/11/09
to android-platform
So, what it is supposed to happen if phone is Wlan attached and user
sends a MMS?
> > > network interface for my application?- Hide quoted text -
>
> - Show quoted text -

André Oriani

unread,
Aug 11, 2009, 12:13:00 AM8/11/09
to android-platform
create a socket using Mobile radio interface since only that network
can provide MMS service

André Oriani

unread,
Aug 11, 2009, 9:24:53 AM8/11/09
to android-platform
I see now. MMS really got special treatment. Besides, it has its own
APN. I shall stop bothering you
Reply all
Reply to author
Forward
0 new messages