I have a couple of questions about connecting on Android, if anyone has any understanding, it would be great.
1) What is the default when an application wants to connect to a wireless network? Is it wlan? And if wlan is turned off or there are no access points around it is 3g or gprs?
2) Is the device always connected to ip? Or when it is disconnected from wlan or 3g will it lose its IP address?
3) Is an application, for example, a browser, ever connected to the same ip address? Or can it be connected to several addresses for each radio, for example gprs or wifi (wlan)?
4) Can the application decide which connection to open for the socket? For example, I can create an application and decide whether to connect a socket for wlan or gprs? Or will the OS decide?
5) Finally, how do native applications handle the connection? In the same way?
android wifi connectivity 3g gprs
Donal rafferty
source share