[mono-android] Being driven insane....
Greg Shackles
gshackles at gmail.com
Sun Nov 27 16:29:30 EST 2011
You can access the intent from the next activity by using the Intent
property, so you can call Intent.GetStringExtra() to pull the string out.
http://docs.mono-android.net/?link=M:Android.Content.Intent.GetStringExtra
On Sun, Nov 27, 2011 at 1:55 PM, Paul F. Johnson <
paul at all-the-johnsons.co.uk> wrote:
> Hi,
>
> > Not followed the rest of the thread, but this is what I often do for
> Serializable objects to be able to use them as strings:
> >
> > public class Foo
> > {
> > public override string ToString()
> > {
> > return Serialize(this);
> > }
> >
> > public static Foo Deserialize(string serializedData)
> > {
> > if (string.IsNullOrEmpty(serializedData))
> > return new Foo();
> >
> > XmlSerializer serializer = new XmlSerializer(typeof(Foo));
> > StringReader reader = new StringReader(serializedData);
> > return (Foo)serializer.Deserialize(reader);
> > }
>
> Pretty much, this is what I expect I need to do, but the question is, if
> I use PutExtra in the intent, where does it appear in the receiving
> methods?
>
> Paul
> --
> Vertraue mir, ich weiss, was ich mache...
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111127/e9f4e87d/attachment.html
More information about the Monodroid
mailing list