@andrew Tell me one thing some people has wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ? is there any generic solution to my problem.?
On Feb 10, 5:53 pm, andrew_prunicki <[email protected]> wrote: > Sorry for the slow response. I did not see your question until just > now. > > I faced the same issue. I had it connecting repeatedly over wifi > only. What I learned was that the wifi radio was turned off when the > screensaver came on. I went thru several attempts to get it to work. > I ended up getting a wake lock on the PowerManager, but this was very > expensive in terms of power usage. I also locked the wifi with the > WifiManager. > > This was back in Android 1.0/1.1, and I believe is completely > unnecessary now. I noticed that Android 1.6 has the ability to keep > the wifi connection in the settings. I imagine you can > programmatically do this as well - hopefully without acquiring a > wakelock. > > On Feb 7, 10:49 pm,himanshujain<[email protected]> wrote: > > > @prunicki > > > You application was connecting with internet repeatedly?? if yes did > > you face this same issue and how did you work out that ? > > > On Feb 7, 8:43 pm,himanshujain<[email protected]> wrote: > > > > @frank > > > > I already tried in differentnetworkat home and at office , I have > > > been trying this on G1 at home i try on WIFI and at office at tried > > > when WIFI is OFF and i am using ip address not host name. > > > > I am using Alarm manager which call service repeatedly after 5 minutes > > > so once it throws Exception(NetworkUnreachable). Alarm manager does > > > not stop by this exception it again start service on specified time > > > and then my service try to connect through HttpURLConnection it says > > >NetworkUnreachable. > > > > On Feb 7, 7:16 pm, prunicki <[email protected]> wrote: > > > > > I tried something similar back in Android 1.0/1.1 using only wifi. > > > > What I found is that once the wifi connection was lost, the only way > > > > to get it back was to fully wakeup the phone. > > > > > I think it may be different with the later versions of the SDK, but in > > > > case it's not... -- 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

