Re: [mono-android] How to do OnSeekBarChangeListener?

2011-09-19 Thread Jonathan Pryor
On Sep 18, 2011, at 8:02 AM, andineupert wrote: > How do I have to use the interface? Define a new class, and implement the > interface? > > This way it doesn't work: > > public class CustomSeekBarChangeListener : Activity, > SeekBar.IOnSeekBarChangeListener I don't think you want this inheri

Re: [mono-android] Missing Static Methods

2011-09-19 Thread riteshsahu
Thanks for the work-around Jon. Hope it'll be fixed in a future release. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Missing-Static-Methods-tp4817432p4820858.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Missing Static Methods

2011-09-19 Thread Jonathan Pryor
On Sep 18, 2011, at 9:21 PM, riteshsahu wrote: > Looks like we've got more missing static methods. I can't find the parseColor > method You'll need to use JNI: IntPtr Color = JNIEnv.FindClass ("android/graphics/Color"); IntPtr Color_parseColor = JNIEnv.GetStaticMethodID (Color,

Re: [mono-android] Linker problems

2011-09-19 Thread Vladimir Dimitrov
Thanks that helped, but I still get these crashes from time to time from the linker and for now I solve them by changing the linking setting. From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Greg Shackles Sent: Monday, September 19, 2011 2:39 PM

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

Re: [mono-android] Linker problems

2011-09-19 Thread Greg Shackles
You can use the Preserve attribute to tell the linker not to remove something: http://android.xamarin.com/Documentation/Linking On Mon, Sep 19, 2011 at 7:26 AM, Vladimir Dimitrov wrote: > I am still evaluating the monodroid and so far I managed to work around > most problems but there is somethin

[mono-android] Linker problems

2011-09-19 Thread Vladimir Dimitrov
I am still evaluating the monodroid and so far I managed to work around most problems but there is something with the linker that is causing types that I don't refer directly but instead create using reflection to fail. The problem seems to be that the linker is simply not including them in the res

[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