The exception says ArrayAdapter expects a Java.Lang.Object, which means your object should implement it.
The object you receive is a serialized object which you then deserialize and use? If you can't change that on the server side I guess you would have to wrap it up inside a helper class of some sort which implements Java.Lang.Object. Not sure if that is the best way to do it, but that is what I can think of right now at least. On Mon, Dec 12, 2011 at 7:38 AM, Rhyous <[email protected]> wrote: > I am getting this error too. The documentation states this should work. > http://docs.monodroid.net/index.aspx?link=T%3aAndroid.Widget.ArrayAdapter > > I have created a very simple sample project that duplicates this issue. > http://www.rhyous.com/wp-content/uploads/2011/12/TestCustomObjectInArrayAdapter.zip > > Hopefully one of your devs can duplicate this with my sample project in a > few minutes and find the bug or document > > I have a custom object called "Device" and I am getting this error when > using it. I copied it for the example project, but it is coming from a Web > Service in my real project and I can't really change the object. > > Hope to get a response > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Error-with-MonoDroid-4-tp5061997p5067350.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid -- Med Venlig Hilsen / With Best Regards Tomasz Cielecki http://ostebaronen.dk _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
