Example usage for android.database.sqlite SQLiteDatabase beginTransactionWithListenerNonExclusive

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

Introduction

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

Prototype

public void beginTransactionWithListenerNonExclusive(SQLiteTransactionListener transactionListener) 

Source Link

Document

Begins a transaction in IMMEDIATE mode.

Usage

From source file:Main.java

public static void beginTransactionNonExclusive(SQLiteDatabase db,
        SQLiteTransactionListener transactionListener) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
        db.beginTransactionWithListenerNonExclusive(transactionListener);
    } else {/*from  ww w .  j a v a  2 s  .c om*/
        db.beginTransactionWithListener(transactionListener);
    }
}