You are lucky! For me, it fails to connect every time on some attempts.
On Jul 5, 5:34 pm, Kostya Vasilyev <[email protected]> wrote: > Based on what I'm seeing with my devices.... when switching from mobile > to WiFi, the broadcast for ConnectivityManager.CONNECTIVITY_ACTION with > State.CONNECTED (TYPE_WIFI) comes too early, the device isn't ready to > make connections over WiFi yet. > > WiFi becomes fully usable a couple of seconds after the broadcast. > > -- Kostya > > 05.07.2011 16:26, Ajay пишет: > > > > > > > > > > > Thank you for replying. But, the connection is failing when I try to > > reconnect with a new socket. > > > On Jun 28, 5:58 pm, Mark Murphy<[email protected]> wrote: > >> You will need to reconnect if your socket connection is dropped due to > >> a change in connectivity, as your IP address will be different. > > >> On Tue, Jun 28, 2011 at 8:41 AM, Ajay<[email protected]> wrote: > >>> Hi, > >>> I have an app that uses sockets in JNI and also HTTP connections in > >>> Java. I have been observing that I have connectivity issues in my app > >>> whenever I switch from WiFi to 3G or vice versa. At the same time, I > >>> am able to browse the Internet using the browser. Is there anything > >>> that the app needs to take care of such scenario or anything that may > >>> be missing in my app? > >>> Thank you, > >>> AJ > >>> -- > >>> 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 > >> -- > >> Mark Murphy (a Commons > >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > >> Warescription: Three Android Books, Plus Updates, One Low Price! > > -- > Kostya Vasilyev -- 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

