Android supports some intents about network connection change. In your onReceive method listen for this network connection changes and check connectivity with
NetworkInfo networkInfo = connection.getActiveNetworkInfo(); (at least this works for me .... when for example the app loses connectivity it tries to reestablish connectivity on Wifi (preferred interface) and then cellular) If you are one cellular your are going to lose data connectivity if you are not using the data interface. You might want to send out some dummy packets to keep cellular connectivity alive (for example doing a ping to a well known address). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 7, 10:20 am, lilbyrdie <kf6...@gmail.com> wrote: > I think the question you're asking is simple: > > When network is lost, the SDK doesn't detect this and thinks it's > valid still. Thus, it still tries to use it. But, since it's not > there, nothing happens. > > How can this be resolved? > > If that's your question, I share that question. > > On Sep 16, 11:38 am, "mobilek...@googlemail.com" > > <mobilek...@googlemail.com> wrote: > > The application I'm working allows a continious upload of several Mbs > > over http, which turns out to be quite a challenge when testing it on > > T-Mobile's 3G netowrk in the UK. At points the stream is interrupted > > and thenetworkstatus seems to change from connected to idle during > > data transmission. The tricky part here is that my broadcast receiver > > does not detect the change, whereas I can clearly see that no data has > > been uploaded by the indication of the 3G icon in the status bar. Has > > anyone faced anything similar to that? How do you overcome thisissue > > when your app has established anetworkconnection, but then out of > > nowhere it losses it, and there is no way for you to detect that... > > I'm fairly familiar with the architecture of mobile 3G networks, and > > the principles of connecting to a B-Node and maintaining that > > connection, however, in my case it seems that the client keeps losing > > connectivity completely randomely. Any thoughts appreciated thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---