Example usage for android.database.sqlite SQLiteDatabase beginTransactionWithListener

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

Introduction

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

Prototype

public void beginTransactionWithListener(SQLiteTransactionListener transactionListener) 

Source Link

Document

Begins a transaction in EXCLUSIVE 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 {/* ww  w. ja va 2s .c  om*/
        db.beginTransactionWithListener(transactionListener);
    }
}