Android Cursor Read newClosedCursor()

Here you can find the source of newClosedCursor()

Description

Creates new cursor, closes it and returns it ^

License

Open Source License

Return

the newly closed cursor.

Declaration

public static MatrixCursor newClosedCursor() 

Method Source Code

//package com.java2s;
/*//  w  w w. ja va2 s  . co m
 *    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;
    }
}

Related

  1. getString(String column)
  2. getPhotoPathByLocalUri(Context context, Intent data)
  3. getIntFromCursor(Cursor cursor, String columnName)
  4. getStringFromCursor(Cursor cursor, String columnName)
  5. getPositionById(Cursor cursor, long theTargetId)
  6. getDate(Cursor cursor, String columnName)