[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-12 Thread himanshu jain
@Mark Murphy If you Read my Questions and issues Please spend little time to answer it .I am kind of stuck ,i want to implement service indefinitely in the background or i want network to be available all the time to implement my service.How can i do it ?? . Please reply On Feb 11, 12:28 

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
@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 ?

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
@andrew Tell me one thing some people have 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 ?

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
@andrew Tell me one thing some people have wifi ON whereas 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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-10 Thread andrew_prunicki
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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Anthoni
Hi himanshu, The code, along with all other test / demo applications done by the android team, is located on Google under subversion. This link is http://code.google.com/p/apps-for-android/ Regards Anthoni On Feb 7, 5:37 am, himanshu jain himanshu@gmail.com wrote: @frank Can you please

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
Thanks Anthoni and Frank @Anthoni and @Frank I checked this code , actually i had already implemented in this way instead of on BOOT i used Alarm Manager that repeatedly wake up the phone after 5 minutes and then i start my service. But the problem is background service works fine for 15

Re: [android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Frank Weiss
Is the service completely crashing due to the exception or does the service continue to get the exception subsequently? Are you perhaps wrongly assuming that the phone is connected to the internet whenever you want it to be? -- You received this message because you are subscribed to the Google

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank Service does not crash completely , it consistently throwing Socket.net Exception Netwrok unreachable after five minutes. If phone is not always connected to network then what is the way of implementing , i dont get this point . Yeah i am assuming phone is connected with network and i

Re: [android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread Frank Weiss
The network unreachable error is always a networking problem. Could be the local network interfaces (wifi and phone) are turned off or temporarily disabled, a bad network mask setting, or some router is unable to route an IP address. It may also be an ipv6 config error. It may be occuring while

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread prunicki
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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank I already tried in different network at 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

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@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, himanshu jain himanshu@gmail.com wrote: @frank I already tried in different network at home and at office , I have been trying this

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread Bob Kerns
This error indicates that some router along the path (possibly your local machine) has no route to the network you're trying to reach. If you're running on a rooted phone, you can run traceroute host to see the route to the host, if you have it; the busybox version works well. This will show

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@bob I think i used connect to another website that sends news in order to check whether it is wrong at network side or in my code. Also my question is , can we really implement a service that runs in background indefinitely and give us update if it is available .If yes, then what parameters we

Re: [android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread Frank Weiss
Re your question about implementing a service that polls for updates, please look at some of the sample code. For example, Romain Guy's Photostream demo application has a background service that polls the Flikr API webservice for updates and displays a notification in the notification bar. AFAIK

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@frank Thank you very much let me look at those sample then i will let you know. once again thanx On Feb 6, 7:14 pm, Frank Weiss fewe...@gmail.com wrote: Re your question about implementing a service that polls for updates, please look at some of the sample code. For example, Romain Guy's

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@frank Can you please tell me where i can find that sample code. thanks On Feb 6, 9:28 pm, himanshu jain himanshu@gmail.com wrote: @frank Thank you very much let me look at those sample then i  will let you know. once again thanx On Feb 6, 7:14 pm, Frank Weiss fewe...@gmail.com