Both wifi and mobile data present network devices to the kernel. ConnectivityService decides relative priority and by default will tear down mobile if wifi is present leaving you with only one connection at a time. A default route is added for the given interface and packets are routed normally. The OEMs radio driver is responsible for passing those packets back and forth to the cellular radio for transmission to the carriers infrastructure.
On Thu, Jun 20, 2013 at 3:59 AM, rishi gupta <[email protected]> wrote: > Hi everyone, > > Using browser app, when I visit a website say www.xyz.com, using Wifi the > webpage loads. This I can comprehend how it happens. But what I wanted to > know is when WiFi is off and Mobile data (3G) is on, how does the same > browser application request gets routed. Where does the switch happens. > Where decision is made to which network to use. > > Any source link ? > > I have explored config.xml and other RIL and WiFi related things. > > -- > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > > --- > You received this message because you are subscribed to the Google Groups > "android-porting" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
