-
Notifications
You must be signed in to change notification settings - Fork 0
Repopulate an android database sample
License
codebybrian/android_repopulate_database
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an Android project sample to demonstrate saving data in a sqlite database, then extracting that databasefrom the command line, storing it in another project, and using the stored database in that project. This is useful for example if you have a bunch of data in a database (like a list of phone numbers) you want to ship with an application. Instead of having a large XML file or something and doing individual INSERTs into the database per row, you can instead do those INSERTs in a separate project, then extract the database as a binary file from the emulator, store that file in your real project, and copy it from the project's resources into the application's data directory, and start using the database. See the companion blog posts: http://codebybrian.com/2012/12/05/how_to_insert_rows_into_sqlite_on_android.html http://codebybrian.com/2012/12/02/populating-sqlite-database-on-android.html Copyright 2012 Brian Johnson Brian Johnson codebybrian.com brian@codebybrian.com
About
Repopulate an android database sample
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published