List of usage examples for android.database Cursor close
void close();
From source file:Main.java
public static void closeCursor(Cursor cursor) { if (null != cursor) { cursor.close(); } }
From source file:Main.java
private static void closeQuietly(Cursor cursor) { if (cursor != null) { cursor.close(); } }
From source file:Main.java
public static void closeCursor(Cursor cursor) { if (cursor != null) { cursor.close(); } }
From source file:Main.java
/** * Closed the cursor if it is not null/*from w w w. j av a 2 s. c o m*/ * @param cursor the cursor to be closed */ private static void closeCursor(Cursor cursor) { if (cursor != null) cursor.close(); }
From source file:Main.java
public static void closeCursor(Cursor c) { if (c != null && !c.isClosed()) { c.close(); } }
From source file:Main.java
public static void closeQuietly(Cursor cursor) { try {//from w ww .j a va2 s.co m cursor.close(); } catch (Exception ignore) { } }
From source file:Main.java
/** If the argument is non-null, close the cursor. */ public static void close(Cursor cursor) { if (cursor != null) { cursor.close(); }//from w w w .j av a2 s .c o m }
From source file:Main.java
/** If the argument is non-null, close the cursor. */ public static void closeQuietly(Cursor cursor) { if (cursor != null) { cursor.close(); }//ww w. ja v a 2s . c o m }
From source file:Main.java
public static void closeCursor(Cursor c) { if (c != null) { try {/*w w w . j av a 2 s.c om*/ c.close(); } catch (Exception e) { // ignored } } }
From source file:Main.java
public static void closeCursor(Cursor c) { if (c != null) { try {//from w ww . ja v a2 s .c o m c.close(); } catch (Exception e) { e.printStackTrace(); } } }