List of usage examples for android.database MatrixCursor setExtras
@Override public void setExtras(Bundle extras)
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; }