Hi Guys My application use socket to connect a remote sever to get data. In my handset, both Wi-Fi and Mobile network data connection are enabled, by default device will choose using Wi-Fi connection. In this case, all network access can process normally
However, when I turn off Wi-Fi in system setting page and switch back to my application to start a new session for network access, I found that socket could not setup. Here is the trace: 11-02 15:04:42.617: WARN/System.err(5516): java.net.SocketException: The operation timed out 11-02 15:04:42.645: WARN/System.err(5516): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl (Native Method) 11-02 15:04:42.645: WARN/System.err(5516): at org.apache.harmony.luni.platform.OSNetworkSystem.connect (OSNetworkSystem.java:125) 11-02 15:04:42.645: WARN/System.err(5516): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:227) 11-02 15:04:42.645: WARN/System.err(5516): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:199) 11-02 15:04:42.645: WARN/System.err(5516): at java.net.Socket.startupSocket(Socket.java:734) Afterwards I close my application and restart it to do the same operation(at this time, Wi-Fi are disabled), network access becomes normal again Does anyone come across this problem and any suggestion from your sides? Many thanks -- 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

