[mono-android] Unable to activate instance of type Java.IO.ISerializableAdapter from native handle
Morten Nilsen
mortenn at hapro.no
Wed Mar 9 11:21:22 EST 2011
Hello,
Looking back at previous threads on this list, I believe you have to do this;
Class BarChart : Java.Lang.Object, Java.IO.ISerializable
{
public BarChart(IntPtr handle)
:base(handle)
{
}
}
-- Cheers, Morten
From: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Asmaa Mohamed Roushdy
Sent: Wednesday, March 09, 2011 2:13 PM
To: monodroid at lists.ximian.com
Subject: [mono-android] Unable to activate instance of type Java.IO.ISerializableAdapter from native handle
I created class BarChart implement Java.IO.ISerializable
BarChart chart = new BarChart();
intent.PutExtra("chart", chart);
when I call
Intent.Extras.GetSerializable("chart")
I have Exception
Unable to activate instance of type Java.IO.ISerializableAdapter from native handle 44fae8c8
How can I solve this situation ?
Sincerely
Asmaa Mohamed Roushdy
Team Lead
Victory Finance<http://www.victoryfn.com/>
[cid:image002.png at 01CBDE7E.69BA1740]
5 El Zohour st. 1st floor, Cairo 12311 Egypt
Phone: +2 02 37624480, Fax: +2 02 37624490
Mobile: +2 0144442156
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110309/227431fa/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 181 bytes
Desc: image002.png
Url : http://lists.ximian.com/mailman/private/monodroid/attachments/20110309/227431fa/attachment-0001.png
More information about the Monodroid
mailing list