That would be the expected behavior, give or take. Certainly you can expect an IOException to be thrown. Wrap your calls in a try/catch block, and present a message or other response that's appropriate if you lose connection.
On Jun 6, 5:29 am, pubu he <pubu...@gmail.com> wrote: > Hi, Experts, > > I wrote one application using socket, which connectes to one server. for > some reasone, the server may disconnect the connection, I noticed that once > the connection is disconnected, android GC starts to work, and the emulator > is freeze, after a while, my application got IOException, then GC stop to > work, who know why? > > Thanks > Pubu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---