Hello,

I am also facing the same problem. I am using a handler to fetch the
data coming from the network request. I am thinking to throw an alert
message to the user from my app indicating "No Response from Network"
or "Network down" or somthing like that so that the user donot see any
error and the user himself restart the app or take corresponding steps
instead of showing user an error. But I system gets to know that there
is no network after all my queries are manipulated and so I dont know
where exactly can I handle this error. I am able to made it print in
my LogCat "error[URL not found]" so it doesnot give any "Force Close
error" but I want the user to be notified about this.

Can you please comment on this and incase if you can help me out with
this?

Thanks a lot.
Regards,
Purvi

On Oct 15, 2:26 am, "[email protected]"
<[email protected]> wrote:
> More info: I found out that the web site returns multiple IP addresses
> on the DNS lookup (see the "Resolving i2.sinaimg.cn line below). This
> appears to be for load balancing purposes. Could this be the reason
> that got Android confused?
>
> $ wgethttp://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
> --23:20:59--  http://i2.sinaimg.cn/IT/2009/1014/20091014235428.jpg
>            => `20091014235428.jpg.1'
> Resolving i2.sinaimg.cn... 61.172.207.61, 61.172.207.62,
> 61.172.207.64, ...
> Connecting to i2.sinaimg.cn|61.172.207.61|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 93,820 (92K) [image/jpeg]
>
> On Oct 14, 9:53 pm, "[email protected]"
>
>
>
> <[email protected]> wrote:
> > My problem may not be the same. I got this only on actual G1 device,
> > not on emulator.
>
> > Also, if G1 is connect to my home WiFi network (comcast), the DNS for
> > i0.sinaimg.cn is resolved without any problem. However, if I
> > disconnect Wifi and use TMO USA 3G network, the DNS never resolves.
>
> > On Oct 14, 9:29 pm, for android <[email protected]> wrote:
>
> > >http://code.google.com/p/android/issues/detail?id=2764
>
> > > On Thu, Oct 15, 2009 at 4:40 AM, [email protected] <
>
> > > [email protected]> wrote:
>
> > > > Hello,
>
> > > > This happens only when my G1 phone is on T-Mobile network:
>
> > > > I found that when I try to go to the browser, and type the address
>
> > > >    http://i0.sinaimg.cn/
>
> > > > The browser tries to load the page, but no progress is shown for more
> > > > than 2 minutes.
>
> > > > (I have full 3G signal; all other addresses work just fine)
>
> > > > Eventually when I tried to access this URL in my Java code, I found a
> > > > similar long delay when I try to open the HttpUrlConnection, and
> > > > eventually I get this exception:
>
> > > > I/InetAddress( 1940): Unknown host i0.sinaimg.cn, throwing
> > > > UnknownHostException
> > > > W/System.err( 1940): java.net.UnknownHostException: Host is
> > > > unresolved: i0.sinaimg.cn:80
> > > > W/System.err( 1940):    at java.net.Socket.connect(Socket.java:1002)
>
> > > > Why would DNS take so long? Also, if my program tries to issue the
> > > > same HTTP request again, the same 2+ minute blocking happened.
>
> > > > Is this an Android bug or a T-Mobile infrastructure bug? It seems the
> > > > Android API should try to time-out faster, especially on the second
> > > > attempt.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to