android - When should I close the cursor that I supply to ListView -
I provide a cursor with a ListActivity like this: My question is: When I am doing my cursor should stop?
cursor cursor = getContentResolver (). Query (yuri, empty, empty, empty, zero); If (cursor! = Null) {mCursorAdapter = New cursor adapter (this, cursor); SetListAdapter (mCursorAdapter); }
Thanks.
on desktop ()
. Soon, if you are leaving the list, call
the start cursor (cursor)
, and Android will shut it down for you. , Is safe to do so.