Thanks. What I had beeen doing was just allocating a new list. I wasn't sure if that would cause any memory problems since the list was assigned to a ListView.
On Fri, Aug 26, 2011 at 1:01 PM, Jonathan Pryor <j...@xamarin.com> wrote: > On Aug 26, 2011, at 12:17 AM, Rodney J. Thomas wrote: > > Ok. I just started doing some development in Mono for Android so I may > ask some simple questions. > > > > In a JavaList<T> object. How do you clear the list. I get a Method not > implemented error. > > I'm sorry, that's a bug. :-( > > It will be fixed in the next release. > > In the meantime, if you need to clear a list (and you can't just allocate a > new JavaList), you can use JNI to invoke it: > > var list = new JavaList (); > var id_clear = JNIEnv.GetMethodID (list.Class.Handle, "clear", > "()V"); > JNIEnv.CallVoidMethod (list.Handle, id_clear); > > Thanks, > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid