Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

DefaultDatabaseErrorHandler

extends Object
implements DatabaseErrorHandler
java.lang.Object
   ↳ android.database.DefaultDatabaseErrorHandler

Class Overview

Default class used to define the actions to take when the database corruption is reported by sqlite.

An application can specify an implementation of DatabaseErrorHandler on the following:

The specified DatabaseErrorHandler is used to handle database corruption errors, if they occur.

If null is specified for DatabaeErrorHandler param in the above calls, then this class is used as the default DatabaseErrorHandler .

Summary

Public Constructors
DefaultDatabaseErrorHandler ()
Public Methods
void onCorruption ( SQLiteDatabase dbObj)
defines the default method to be invoked when database corruption is detected.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.database.DatabaseErrorHandler

Public Constructors

public DefaultDatabaseErrorHandler ()

Public Methods

public void onCorruption ( SQLiteDatabase dbObj)

defines the default method to be invoked when database corruption is detected.

Parameters
dbObj the SQLiteDatabase object representing the database on which corruption is detected.