docs/doc/reference/com/google/android/exoplayer2/database/StandaloneDatabaseProvider.html
Package com.google.android.exoplayer2.database
All Implemented Interfaces:DatabaseProvider, AutoCloseableDirect Known Subclasses:ExoDatabaseProvider
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classStandaloneDatabaseProviderextends[SQLiteOpenHelper](https://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html "class or interface in android.database.sqlite")implements[DatabaseProvider](DatabaseProvider.html "interface in com.google.android.exoplayer2.database")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
An SQLiteOpenHelper that provides instances of a standalone database.
Suitable for use by applications that do not already have their own database, or that would prefer to keep tables used by media library components isolated in their own database. Other applications should prefer to use DefaultDatabaseProvider with their own SQLiteOpenHelper.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static String | DATABASE_NAME |
Deprecated.
The file name used for the standalone database. |
-
TABLE_PREFIX
Constructors | Constructor | Description |
| --- | --- |
| StandaloneDatabaseProvider(Context context) |
Deprecated.
Provides instances of the database located by passing DATABASE_NAME to Context.getDatabasePath(String).
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | onCreate(SQLiteDatabase db) |
Deprecated.
|
| void | onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) |
Deprecated.
|
| void | onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) |
Deprecated.
|
-
close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onOpen, setIdleConnectionTimeout, setLookasideConfig, setOpenParams, setWriteAheadLoggingEnabled
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
getReadableDatabase, getWritableDatabase
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")DATABASE_NAME
Deprecated.
The file name used for the standalone database. See Also:Constant Field Values
-
public StandaloneDatabaseProvider([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context)
Deprecated.
Provides instances of the database located by passing DATABASE_NAME to Context.getDatabasePath(String).
Parameters:context - Any context.
-
public void onCreate([SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html "class or interface in android.database.sqlite")db)
Deprecated.
Specified by:onCreate in class SQLiteOpenHelper
-
public void onUpgrade([SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html "class or interface in android.database.sqlite")db,
int oldVersion,
int newVersion)
Deprecated.
Specified by:onUpgrade in class SQLiteOpenHelper
-
public void onDowngrade([SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html "class or interface in android.database.sqlite")db,
int oldVersion,
int newVersion)
Deprecated.
Overrides:onDowngrade in class SQLiteOpenHelper