Re: [mono-android] Threads

2011-09-19 Thread Mittchel Van Vliet
Thanks Greg, didn't knew it was that simple though.. Works fine for me right now:) I love your tutorials btw! That was actually from your tutorial haha 2011/9/19 Greg Shackles > Most tutorials (mine included) use Thread.Sleep() as an easy way to > simulate a method call that takes awhile to retu

Re: [mono-android] Threads

2011-09-19 Thread Steve Maier
The way I do my web services is to add the asynchronous interface and then just give it a delegate for completion and then call the begin method. Sent from my iPhone On Sep 19, 2011, at 5:12 AM, Mittchel Van Vliet wrote: > Hello everyone, > > Currently I am working with webservices in Monodro

Re: [mono-android] Threads

2011-09-19 Thread Greg Shackles
Most tutorials (mine included) use Thread.Sleep() as an easy way to simulate a method call that takes awhile to return, but you shouldn't be calling that in your situation. In the code you posted, it will always sleep 10 seconds before even trying to call the service. Simply removing the call to Th

[mono-android] Threads

2011-09-19 Thread Mittchel Van Vliet
Hello everyone, Currently I am working with webservices in Monodroid and MonoTouch.. but I've got one problem: With webservices sometimes you've the problem that a webservice needs time to load, so the solution is to put in a thread right? But I've only seen tutorials where you put a solid amount