hi,i m doing practice on listviews concept....i tried example in
http://docs.xamarin.com/guides/android/user_interface/working_with_listviews_and_adapters/part_4_-_using_cursoradapters....here
m getting error...
UnhandledException...System.NullReferenceException at
listview.Adapter = new SimpleCursorAdapter(this,
Android.Resource.Layout.SimpleListItem1,
cursor,fromColumns,toControlIDs);//when i place mouse cursor at listview at
debugging time it is showing null
the errors at debug time screenshot is
<http://mono-for-android.1047100.n5.nabble.com/file/n5713031/debuglistview.bmp>
and my other screen shots are Homescreen.cs(creating cursor adapter)
<http://mono-for-android.1047100.n5.nabble.com/file/n5713031/listview1.bmp>
and creating database screenshot
<http://mono-for-android.1047100.n5.nabble.com/file/n5713031/vegdata.bmp>
i tried by replacing database version to 3 like
public static readonly string DatabaseName = "vegetables.db3";
public static readonly int DatabaseVersion = 3;
...even m getting same error.....
plz tell the soln as early as possible...
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Getting-error-in-simplecursoradapter-listview-example-tp5713031.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