Java Code Examples for android.database.sqlite.SQLiteDatabase#CursorFactory

The following examples show how to use android.database.sqlite.SQLiteDatabase#CursorFactory . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatabaseContext.java    From android_maplib with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public SQLiteDatabase openOrCreateDatabase(
        String name,
        int mode,
        SQLiteDatabase.CursorFactory factory,
        DatabaseErrorHandler errorHandler)
{
    return SQLiteDatabase.openOrCreateDatabase(
            getDatabasePath(name).getAbsolutePath(), factory, errorHandler);
}
 
Example 2
Source File: DatabaseHelper.java    From android_maplib with GNU Lesser General Public License v3.0 5 votes vote down vote up
public DatabaseHelper(
        Context context,
        File dbFullName,
        SQLiteDatabase.CursorFactory factory,
        int version)
{
    super(
            new DatabaseContext(context, dbFullName.getParentFile()), dbFullName.getName(),
            factory, version);
}
 
Example 3
Source File: AndroidContextMock.java    From 9-project-layout with Apache License 2.0 4 votes vote down vote up
@Override
public SQLiteDatabase openOrCreateDatabase(String s, int i, SQLiteDatabase.CursorFactory cursorFactory, DatabaseErrorHandler databaseErrorHandler) {
  return null;
}
 
Example 4
Source File: DatabaseHelper.java    From Focus with GNU General Public License v3.0 4 votes vote down vote up
public DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory,
                      int version) {
    super(context, name, factory, version);
    _context = context;

}
 
Example 5
Source File: CrashDbHelper.java    From 920-text-editor-v2 with Apache License 2.0 4 votes vote down vote up
public CrashDbHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    this(context, name, factory, version, null);
}
 
Example 6
Source File: AndroidContextMock.java    From 9-project-layout with Apache License 2.0 4 votes vote down vote up
@Override
public SQLiteDatabase openOrCreateDatabase(String s, int i, SQLiteDatabase.CursorFactory cursorFactory) {
  return null;
}
 
Example 7
Source File: DaoMaster.java    From Expert-Android-Programming with MIT License 4 votes vote down vote up
public DevOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
    super(context, name, factory);
}
 
Example 8
Source File: DbHelper.java    From HaoReader with GNU General Public License v3.0 4 votes vote down vote up
DaoOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
    super(context, name, factory);
}
 
Example 9
Source File: SoldierWeatherOpenHelper.java    From SoldierWeather with Apache License 2.0 4 votes vote down vote up
public SoldierWeatherOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
}
 
Example 10
Source File: DBHandler.java    From privacy-friendly-qr-scanner with GNU General Public License v3.0 4 votes vote down vote up
public DBHandler(Context context, SQLiteDatabase.CursorFactory factory) {
    super(context, DATABASE_NAME, factory, DATABASE_VERSION);
}
 
Example 11
Source File: RawOpenHelper.java    From Storm with Apache License 2.0 4 votes vote down vote up
public RawOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
}
 
Example 12
Source File: WallabagDbOpenHelper.java    From android-app with GNU General Public License v3.0 4 votes vote down vote up
WallabagDbOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
    super(context, name, factory);
    this.context = context;
}
 
Example 13
Source File: KcaPacketLogger.java    From kcanotify with GNU General Public License v3.0 4 votes vote down vote up
public KcaPacketLogger(Context context, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, packetlog_db_name, factory, version);
}
 
Example 14
Source File: ContactDBHandler.java    From VyAPI with MIT License 4 votes vote down vote up
public ContactDBHandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, DATABASE_NAME, factory, version);
}
 
Example 15
Source File: DbHelper.java    From a with GNU General Public License v3.0 4 votes vote down vote up
DaoOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
    super(context, name, factory);
}
 
Example 16
Source File: DatabaseHelper.java    From ncalc with GNU General Public License v3.0 4 votes vote down vote up
public DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
}
 
Example 17
Source File: DatabaseHelper.java    From Leisure with GNU Lesser General Public License v3.0 4 votes vote down vote up
private DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
}
 
Example 18
Source File: DatabaseHelper.java    From Focus with GNU General Public License v3.0 4 votes vote down vote up
public DatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory,
                      int version) {
    super(context, name, factory, version);
    _context = context;

}
 
Example 19
Source File: OkDatabaseHelp.java    From BlueBoard with Apache License 2.0 4 votes vote down vote up
private OkDatabaseHelp(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
}
 
Example 20
Source File: Dbhandler.java    From CameraBlur with Apache License 2.0 2 votes vote down vote up
public Dbhandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, DATABASE_NAME, factory, DATABASE_VERSION);

}