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

or the start cursor (cursor) , and Android will shut it down for you. , Is safe to do so.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -