ICursor is part of the Android framework, so it gets returned when you use
the standard data access methods. Since you're using the .NET data access
classes, instead of using a SimpleCursorAdapter I would recommend using
something like an ArrayAdapter [1] or you can extend BaseAdapter to create
your own adapter class [2].


[1]
http://docs.mono-android.net/index.aspx?link=T%3aAndroid.Widget.ArrayAdapter%601

[2]
https://github.com/gshackles/Sample-Projects/blob/master/MonoDroid/DatabaseDemo/DatabaseDemo/NoteListAdapter.cs


On Tue, Oct 18, 2011 at 5:27 AM, bmellac <bmel...@nomadvantage.com> wrote:

> Hi,
>
> have just a simple question, trying not to waste too much time on it :
>
> i'm trying to create a SimpleCursorAdapter for an AutocompleteTextView,
> based on a sqlite db.
> For that, I have to implement the IFilterQueryProvider interface.
> More precisely, I'm working on the public Android.Database.ICursor
> RunQuery(Java.Lang.ICharSequence constraint) method.
> So it has to return an ICursor.
>
> Am I wrong or the Mono.Data.Sqlite does not provide any way to get cursor
> from query ?
> Have I to use instead the Android.Database.Sqlite namespace and its
> functions to get it work ?
>
> Thx a lot for our answers.
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Mono-Data-Sqlite-and-cursors-tp4913036p4913036.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> 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

Reply via email to