Skip to content

Commit 0c2a5f1

Browse files
committed
update docs
1 parent cfe48d9 commit 0c2a5f1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.markdown

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,15 @@ dependencies {
2626

2727
If you are using the old build system, download and place the latest library [JAR][1] inside your project's `libs` folder.
2828

29-
3029
Usage
3130
-----
3231

33-
Copy [android-sqlite-asset-helper.jar](https://github.com/jgilfelt/android-sqlite-asset-helper/blob/master/lib/android-sqlite-asset-helper.jar?raw=true) into your Android project's `libs` directory and add it to the build path.
34-
3532
Extend `SQLiteAssetHelper` as you would normally do `SQLiteOpenHelper`, providing the constructor with a database name and version number:
3633

3734
```java
3835
public class MyDatabase extends SQLiteAssetHelper {
3936

40-
private static final String DATABASE_NAME = "northwind";
37+
private static final String DATABASE_NAME = "northwind.db";
4138
private static final int DATABASE_VERSION = 1;
4239

4340
public MyDatabase(Context context) {
@@ -75,7 +72,7 @@ Update the initial SQLite database in the project's `assets/databases` directory
7572

7673
assets/databases/<database_name>_upgrade_<from_version>-<to_version>.sql
7774

78-
For example, [assets/databases/northwind.db_upgrade_1-2.sql](https://github.com/jgilfelt/android-sqlite-asset-helper/blob/v2/samples/database-v2-upgrade/assets/databases/northwind.db_upgrade_1-2.sql) upgrades the database named "northwind" from version 1 to 2. You can include multiple upgrade files to upgrade between any two given versions.
75+
For example, [northwind.db_upgrade_1-2.sql](https://github.com/jgilfelt/android-sqlite-asset-helper/blob/v2/samples/database-v2-upgrade/src/main/assets/databases/northwind.db_upgrade_1-2.sql) upgrades the database named "northwind" from version 1 to 2. You can include multiple upgrade files to upgrade between any two given versions.
7976

8077
If there are no files to form an upgrade path from a previously installed version to the current one, the class will throw a `SQLiteAssetHelperException`.
8178

0 commit comments

Comments
 (0)