Share via


Activity.StopManagingCursor(ICursor) Method

Definition

Caution

deprecated

Given a Cursor that was previously given to #startManagingCursor, stop the activity's management of that cursor.

[Android.Runtime.Register("stopManagingCursor", "(Landroid/database/Cursor;)V", "GetStopManagingCursor_Landroid_database_Cursor_Handler")]
[System.Obsolete("deprecated")]
public virtual void StopManagingCursor (Android.Database.ICursor? c);
[<Android.Runtime.Register("stopManagingCursor", "(Landroid/database/Cursor;)V", "GetStopManagingCursor_Landroid_database_Cursor_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member StopManagingCursor : Android.Database.ICursor -> unit
override this.StopManagingCursor : Android.Database.ICursor -> unit

Parameters

c
ICursor

The Cursor that was being managed.

Attributes

Remarks

Given a Cursor that was previously given to #startManagingCursor, stop the activity's management of that cursor.

<strong>Warning:</strong> After calling this method on a cursor from a managed query, the system <em>will not</em> automatically close the cursor and you must call Cursor#close().

This member is deprecated. Use the new android.content.CursorLoader class with LoaderManager instead; this is also available on older platforms through the Android compatibility package.

Java documentation for android.app.Activity.stopManagingCursor(android.database.Cursor).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also