public class AssetDatabaseOpenHelper extends Object
SQLiteDatabase, use getWritableDatabase() to create and/or open a database
that will be used for reading and writing. use getReadableDatabase() to create and/or open a database that
will be used for reading only.| 构造器和说明 |
|---|
AssetDatabaseOpenHelper(android.content.Context context,
String databaseName) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDatabaseName() |
android.database.sqlite.SQLiteDatabase |
getReadableDatabase()
Create and/or open a database that will be used for reading only.
|
android.database.sqlite.SQLiteDatabase |
getWritableDatabase()
Create and/or open a database that will be used for reading and writing.
|
public AssetDatabaseOpenHelper(android.content.Context context,
String databaseName)
public android.database.sqlite.SQLiteDatabase getWritableDatabase()
RuntimeException - if cannot copy database from assetsandroid.database.sqlite.SQLiteException - if the database cannot be openedpublic android.database.sqlite.SQLiteDatabase getReadableDatabase()
RuntimeException - if cannot copy database from assetsandroid.database.sqlite.SQLiteException - if the database cannot be openedpublic String getDatabaseName()
Copyright © 2012-2014. All Rights Reserved.