Example usage for android.database.sqlite SQLiteDatabase create

List of usage examples for android.database.sqlite SQLiteDatabase create

Introduction

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

Prototype

@NonNull
public static SQLiteDatabase create(@Nullable CursorFactory factory) 

Source Link

Document

Create a memory backed SQLite database.

Usage

From source file:com.sourceallies.android.zonebeacon.data.SQLiteQueryTest.java

@Before
public void setUp() throws Exception {
    SQLiteDatabase database = SQLiteDatabase.create(null);
    DatabaseSQLiteHelper helper = new DatabaseSQLiteHelper(RuntimeEnvironment.application);
    helper.onCreate(database);//  ww  w.  j  av a  2s  .c  o m

    source = new DataSource(database);
    insertData();
}