This method is deprecated. Don't use this. Just request a new cursor, so you can do this asynchronously and update your list view once the new cursor comes back.
public void startManagingCursor
Since: API Level 1 This method allows the activity to take care of managing the given Cursor's lifecycle
for you based on the activity's lifecycle. That is, when the activity is stopped
it will automatically call deactivate() on the given Cursor,
and when it is later restarted it will call requery() for you.
When the activity is destroyed, all managed Cursors will be closed automatically
c The Cursor to be managed.
public final Cursor managedQuery
(Uri uri, String projection, String selection, String selectionArgs, String sortOrder)
Since: API Level 1 Wrapper around query(android.net.Uri, String, String, String, String) that gives the resulting Cursor to call startManagingCursor(Cursor) so that the activity will manage its lifecycle for you. 参数 uri
The URI of the content provider to query. projection
List of columns to return. selection
SQL WHERE clause. selectionArgs
The arguments to selection, if any ?s are pesent sortOrder
SQL ORDER BY clause. 返回
* The Cursor that was returned by query().注意