Stay organized with collections Save and categorize content based on your preferences.

public interface DatabaseErrorHandler

android.database.DatabaseErrorHandler



An interface to let apps define an action to take when database corruption is detected.

Summary

Public methods

abstract void onCorruption(SQLiteDatabase dbObj)

The method invoked when database corruption is detected.

Public methods

onCorruption

public abstract void onCorruption (SQLiteDatabase dbObj)

The method invoked when database corruption is detected.

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2022-02-10 UTC.