[mono-android] Deserialize from Intent.GetStringExtra issue
Jonathan Pryor
jonp at xamarin.com
Tue Nov 29 14:48:35 EST 2011
On Nov 29, 2011, at 10:03 AM, nodoid wrote:
> Unfortunately at the other end, things aren't as good - I'm getting a null exception.
This a Debug or Release build?
Release builds enable the linker, which may be removing the members that the XmlSerializer is trying to use:
http://docs.xamarin.com/android/advanced_topics/linking
As a further sanity check, you may want to use Android.Util.Log.Info() to log the result of `o.ToString()` in your serialization code, then log the result of Intent.GetStringExtra("mydata") to ensure that they match. (They certainly should, but it doesn't hurt to verify basic functionality...)
- Jon
More information about the Monodroid
mailing list