Yes, I noticed that too, I also work with PalmOS and Windows Mobile development and you have all the control over the network connections.
Android stays connected on any network it finds, Mobile Data Network or WiFi. If you have a WiFi network registered and you reach its covered area, it switches automatically to WiFi. If you are out of the WiFi network, it tries to connect to the operator data network (GPRS, EDGE, 3G). There must be a way to prevent one or other connection but I didn't find (yet) any way to explicitly control the connections (drop/connect). Marcio Alexandroni www.cialogica.com w Tel. 55 11 3717-2345 Cel. 55 11 9989-8316 [EMAIL PROTECTED] marcioalexandroni -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Qualyxx Sent: Thursday, December 04, 2008 17:35 To: Android Developers Subject: [android-developers] How to explicitly establish connection to the underlying GPRS or WiFi? In Window Mobile or Brew, the application has to make a ConnMgrEstablishConnection call to connect to the underlying data network. I don't see such API exists in Android. The question is: when is the the network connection with the underlying data network established? when the first Socket connect call is made? when the browser makes a URL request? And when does it decide to close the network connection and is there an API to accomplish that? The android.net.ConnectivityManager seems to provide network status but no explicit calls to open and end the data connection to the network. Any hints would be appreciated. Thanks, Yang --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

