close Cursor - Android Database

Android examples for Database:Cursor

Description

close Cursor

Demo Code


//package com.java2s;
import android.database.Cursor;

public class Main {
    public static void closeCursor(Cursor cursor) {
        if (null != cursor) {
            cursor.close();/* w w w. j ava  2 s.  c o  m*/
        }
    }
}

Related Tutorials