I've found the problem but I don't know the Solution .

URLConnection myConnection = myURL.openConnection();

when no internet it doesn't return from this method at all !!!!!!!!!!!!!!
and dunno what should I do for that....

On Sat, Jul 31, 2010 at 2:29 PM, tarek attia <tarek.m.at...@gmail.com>wrote:

> Hi all,
>
> I have a problem in my code ,runs on the emulator very well,but on my
> T-mobile G1 doesn't time out .Code snippet is below :-
>
> URL myURL = new URL(uriBuilder.toString());
>  URLConnection myConnection = myURL.openConnection();
>        myConnection.setConnectTimeout(40000);
>
> so when no internet connection it doesn't time out at all !!!!!
>
> any Idea ?
> --
> tarek
>



-- 
tarek

-- 
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

Reply via email to