Ah, I am closing the database, because I thought I was getting
exceptions if I didn't.

I have a method: Cursor getCursor() which opens the database, performs
the query, closes the database and returns the cursor.  Is that not
how I should be doing it?

I checked out the examples you sited, but they all get their cursor
via the content resolver.


On Nov 23, 3:18 pm, Mark Murphy <[email protected]> wrote:
> junker37 wrote:
> > An sqlitecursor, I create them like this:
>
> > Cursor cursor = database.query(table, null, null, null, null, null,
> > null);
> > and
> > Cursor cursor = database.rawQuery(table, null)
>
> That should work fine, then, with startManagingCursor(). The Cursor will
> be called with requery() automatically during the onResume() process, to
> get the latest data.
>
> If your Cursor is coming back empty, perhaps your query is no longer
> valid, or perhaps you closed the database, or something.
>
> The List2, List3, List7, and Gallery2 API Demos (found in your SDK)
> demonstrate the use of startManagingCursor().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in Germany, 18-22 January 2010:http://bignerdranch.com

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

Reply via email to