Re: [mono-android] [MonoTouch] Android.GoogleMaps missing in monodroid 2.2?

2011-11-23 Thread Wally McClure
Diego, As I understand things, the maps demo on github requires m4a 1.9.2 or later. I expect that when m4a 2.0 ships, there you will need to look at an update to your samples to take into account new/changed apis. Wally > From: diegogu...@gmail.com > Date: Wed, 23 Nov 2011 13:24:58 +0100 > To:

[mono-android] Being driven insane....

2011-11-23 Thread Paul Johnson
Hi, This is driving me mad I have a class called foo with [Serialize] above it to serialize it. In the main tab constructor, I have Bundle b; b.PutSerializable("data", foo); intent.PutExtras(b); Should be ok, except for PutSerializable it needs to be Java.IO.ISerializable Putting (Java.IO

Re: [mono-android] Being driven insane....

2011-11-23 Thread Jonathan Pryor
On Nov 23, 2011, at 10:20 AM, Paul Johnson wrote: > I have a class called foo with [Serialize] above it to serialize it. > > In the main tab constructor, I have > > Bundle b; > b.PutSerializable("data", foo); > intent.PutExtras(b); This is not what you think it is. Java.IO.ISerialzable != Syste

Re: [mono-android] Being driven insane....

2011-11-23 Thread nodoid
Hi, Jonathan Pryor-2 wrote > >> In the main tab constructor, I have >> >> Bundle b; >> b.PutSerializable("data", foo); >> intent.PutExtras(b); > > This is not what you think it is. Java.IO.ISerialzable != > System.Runtime.ISerializable. They have _completely_ different semantics, > not least i

Re: [mono-android] Being driven insane....

2011-11-23 Thread nodoid
Hi, Re XML serialization... Typically, I would use (say) foo p = new p(); System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(p.GetType()); x.Serialize(Console.Out, p); Obviously, I can't use Console.Out, so where do I need to point it to (for example a tempor

Re: [mono-android] Being driven insane....

2011-11-23 Thread Jonathan Pryor
On Nov 23, 2011, at 11:03 AM, nodoid wrote: > This is seriously annoying me now. I've used XML before now in another app > which is easy enough to do, but does seem overkill. Looking on the docs for > the ContentProvider, it seems to be best suited to apps sharing data rather > than sharing within

Re: [mono-android] Being driven insane....

2011-11-23 Thread Mike Child
I found this code through some searching. I am using json in my code but using xml should be relatively simple change in the code. public static byte[] ToJson(T instance) --> it's converted to byte[] because i'm using it in httpwebrequest, you could just return the string. {   DataContrac

Re: [mono-android] Being driven insane....

2011-11-23 Thread Jonathan Pryor
On Nov 23, 2011, at 11:16 AM, nodoid wrote: > foo p = new p(); > > System.Xml.Serialization.XmlSerializer x = new > System.Xml.Serialization.XmlSerializer(p.GetType()); StringWriter o = new StringWriter(); x.Serialize (o, p); // o.ToString() contains the written string...

Re: [mono-android] Being driven insane....

2011-11-23 Thread Paul F. Johnson
Hi, > On Nov 23, 2011, at 11:16 AM, nodoid wrote: > > foo p = new p(); > > > > System.Xml.Serialization.XmlSerializer x = new > > System.Xml.Serialization.XmlSerializer(p.GetType()); > > StringWriter o = new StringWriter(); > x.Serialize (o, p); Then just pass using PutExtra(string,

Re: [mono-android] Being driven insane....

2011-11-23 Thread Jonathan Pryor
On Nov 23, 2011, at 1:04 PM, Paul F. Johnson wrote: >> StringWriter o = new StringWriter(); >> x.Serialize (o, p); > > Then just pass using PutExtra(string, string)? Use o.ToString(), yeah: b.PutExtra ("my.name", o.ToString ()); - Jon

Re: [mono-android] IOnClickListener with lambda?

2011-11-23 Thread Glen Hassell
Greg Shackles and Johnathan Pryor have an article on the subject; http://mono-for-android.1047100.n5.nabble.com/another-Java-versus-C-how-to-td4332736.html "C# doesn't allow anonymous implementations like Java (ie: the listener interfaces) so those get replaced by events/delegates in C#. If you w