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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -