Re: [mono-android] Missing Static Methods

2011-09-29 Thread Jonathan Pryor
On Sep 29, 2011, at 3:43 PM, efontana wrote: > Is there anything wrong is just doing it this way? > > int color = System.Drawing.ColorTranslator.FromHtml("#afe0f4").ToArgb(); No, but that has different semantics. Color.ParseColor() supports a specific list of named colors, e.g. "magenta", which

Re: [mono-android] Missing Static Methods

2011-09-29 Thread efontana
Is there anything wrong is just doing it this way? int color = System.Drawing.ColorTranslator.FromHtml("#afe0f4").ToArgb(); seems sorta Hackish to do the JNI thing? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Missing-Static-Methods-tp4817432p4854447.html Sen

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,

[mono-android] Missing Static Methods

2011-09-18 Thread riteshsahu
Hi, Looks like we've got more missing static methods. I can't find the parseColor method http://developer.android.com/reference/android/graphics/Color.html#parseColor(java.lang.String) in Mono for Android. Android.Graphics.Color doesn't seem to have the method. Is there some other way of accessing