Java tutorial
//package com.java2s; /* * Copyright (c) 2012 Hai Bison * * See the file LICENSE at the root directory of this project for copying * permission. */ import android.database.MatrixCursor; public class Main { /** * Creates new cursor, closes it and returns it ^^ * * @return the newly closed cursor. */ public static MatrixCursor newClosedCursor() { MatrixCursor cursor = new MatrixCursor(new String[0]); cursor.close(); return cursor; } }