Example usage for android.database MatrixCursor setExtras

List of usage examples for android.database MatrixCursor setExtras

Introduction

In this page you can find the example usage for android.database MatrixCursor setExtras.

Prototype

@Override
    public void setExtras(Bundle extras) 

Source Link

Usage

From source file:android.support.content.TestQueryCallback.java

@Override
public @Nullable Cursor runQueryInBackground(Query query) {
    mQueryLatch.accept(query);//w  w  w .j  a  va2 s. com
    Bundle extras = new Bundle();
    extras.putParcelable(URI_KEY, query.getUri());
    extras.putInt(URI_PAGE_ID, query.getId());
    MatrixCursor cursor = new MatrixCursor(new String[] { "id" }, 0);
    cursor.setExtras(extras);
    return cursor;
}