Android.Database.Sqlite.SQLiteOpenHelper.ReadableDatabase Property
Create and/or open a database.

Syntax

[System.Obsolete("deprecated")]
[get: Android.Runtime.Register("getReadableDatabase", "()Landroid/database/sqlite/SQLiteDatabase;", "GetGetReadableDatabaseHandler")]
public virtual SQLiteDatabase ReadableDatabase { get; }

Value

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Database.Sqlite.SQLiteExceptionif the database cannot be opened

Remarks

Create and/or open a database. This will be the same object returned by SQLiteOpenHelper.WritableDatabase unless some problem, such as a full disk, requires the database to be opened read-only. In that case, a read-only database object will be returned. If the problem is fixed, a future call to SQLiteOpenHelper.WritableDatabase may succeed, in which case the read-only database object will be closed and the read/write object will be returned in the future.

Like SQLiteOpenHelper.WritableDatabase, this method may take a long time to return, so you should not call it from the application main thread, including from Android.Content.ContentProvider.OnCreate.

[Android Documentation]

Requirements

Namespace: Android.Database.Sqlite
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1