Example usage for android.database.sqlite SQLiteCursor SQLiteCursor

List of usage examples for android.database.sqlite SQLiteCursor SQLiteCursor

Introduction

In this page you can find the example usage for android.database.sqlite SQLiteCursor SQLiteCursor.

Prototype

@Deprecated
public SQLiteCursor(SQLiteDatabase db, SQLiteCursorDriver driver, String editTable, SQLiteQuery query) 

Source Link

Document

Execute a query and provide access to its result set through a Cursor interface.

Usage

From source file:mobisocial.bento.anyshare.util.DBHelper.java

public DBHelper(Context context) {
    super(context, DB_NAME, new SQLiteDatabase.CursorFactory() {
        @Override//from  w  w  w.java  2 s .c o  m
        public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, String editTable,
                SQLiteQuery query) {
            return new SQLiteCursor(db, masterQuery, editTable, query);
        }
    }, VERSION);
}

From source file:edu.stanford.mobisocial.dungbeetle.DBHelper.java

public DBHelper(Context context) {
    super(context, DB_NAME, new SQLiteDatabase.CursorFactory() {
        @Override//from   w w w  .j a v  a  2  s . c  o m
        public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, String editTable,
                SQLiteQuery query) {
            return new SQLiteCursor(db, masterQuery, editTable, query);
        }
    }, VERSION);
    mContext = context;
}