Tuesday, February 8, 2011

Re: [android-developers] === My ContentProvider.query() can not populate a Cursor. ===

Take a look at MatrixCursor.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

09.02.2011 5:27 пользователь "ClarkBattle" <clarkbattle@gmail.com> написал:
> I am making a ContentProvider to provide results of the android global
> search box. I am supposed to @Override query() to return my results
> in a Cursor. The problem is that my results do not come from a
> database. They come from a server that gives me a populated
> List<Content>. Perhaps I need to manually populate a new Cursor with
> my list contents. However, Cursor appears to be a read only
> interface. Is there a way to make a new Cursor and populate it
> manually? If not then what else can I do?
>
> What should I do? Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment