If there is no way to put a timeout in the call, u should use a thread
to call it, and in the main thread just wait 6 second before check if
the webservice call has an answer. Unless it does, you should kill
that thread...

On Mar 18, 9:12 am, "Florindo Renso" <[EMAIL PROTECTED]> wrote:
> Thx :-)
>
> On Tue, Mar 18, 2008 at 9:06 AM, chitgoks <[EMAIL PROTECTED]> wrote:
>
> > ok i hope someone else can help you. you probably need a Thread with this.
> > and I havent touched Threads in android yet
>
> > On Tue, Mar 18, 2008 at 4:04 PM, Florindo Renso <[EMAIL PROTECTED]>
> > wrote:
>
> > > my code is just in a try catch ...
> > > My problem is this:
>
> > > I need to create a connection timeout that after 6 seconds without
> > > reciving a reply from the server close the connection and throws and
> > > eception. Actually happen that my apllication remains blocked and the call
> > > of the webservice, waiting the reply for a indeterminate time, so if for
> > > some problem the webservice don't give a reply to the call the applicazion
> > > was blocked in a infinite loop.
> > > I hope to be clear this time
> > > thx
>
> >  --
> > Website:http://chitgoks.freehostia.com
> > Java Casino Games:http://chitgoks.tripod.com
> > My Blogs:
> >http://chitgoks.blogspot.com
> >http://wuhtevah.blogspot.com
> >http://disneyusa.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to