/Android-Copy-Database

copy SQLite Database from Assets folder

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Android-Copy-Database

copy SQLite Database from Assets folder into Android Internal Storage Database Location

Description

A simple Android Application Template that copies the Database from Assets Folder into Internal Storage Database Location.

Usefulness

  1. When you dont want to create Database using code
  2. When you want to use already filled Database

How to use Your Database

  1. Assets Folder
  2. Delete DB_CATEGORY.sqlite in Assets Folder
  3. Copy Your Database in Assets Folder
  4. Code
  5. Replace Your Database name with "DB_CATEGORY.sqlite" in DBHelper class
  6. Query Your Database from DBQuery class accordingly
  7. db.getCategories(0) in Activity1 class is developed for current database, change that method according to Your Database

Requires Android

Compatible with Android 2.3 (GINGERBREAD - 9) and above.