Skip to content

shanraisshan/Android-Copy-Database

Repository files navigation

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

Assets Folder

  1. Delete DB_CATEGORY.sqlite in Assets Folder
  2. Copy Your Database in Assets Folder

Code

  1. Replace Your Database name with "DB_CATEGORY.sqlite" in DBHelper class
  2. Query Your Database from DBQuery class accordingly
  3. 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.

About

copy SQLite Database from Assets folder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages