On Wed, May 5, 2010 at 15:15, [email protected] <[email protected]> wrote:
> I have a couple of questions about connectivity on Android, if anyone > has any insight it would be great. > > What is the default when an application wants to wirelessly connect? > Is it wlan? And if wlan is switched off or there is no access points > around is it 3g or gprs? > > Is a device always ip connected? Or when its disabled from wlan or 3g > does it's lose its ip address? > AFAIK, you only have 1 *active* conection at a time. wireless or 3g, in order of preference. if none is available you only have a loopback interface up (127.0.0.1) that doesn't connect you to anything except you phone :) Is an application, for example the browser only ever connected to one > ip address? Or can it be connected to multiple addresses for each > radio such as gprs or wifi (wlan)? > Only one. > Can an application decide which connection to open a socket to? For > example can I create an application and decide whether to connect the > socket to the wlan or gprs? Or does the OS decide? > The OS decides. An application developer only have to worry about being able to use the Internet. nothing else. > Finally how do native applications handle connectivity? In the same > manner? I think they use the active interface, and since there is only one at a time, yes, it's in the same manner. -- 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

