---
title: "How to ship an Android application with a database?"  
description: "How to ship an Android application with a database?"  
author: "Anonymous User"  
published: 2015-05-22  
updated: 2015-05-22  
canonical: https://www.mindstick.com/forum/23255/how-to-ship-an-android-application-with-a-database  
category: "android"  
tags: ["android"]  
reading_time: 1 minute  

---

# How to ship an Android application with a database?

If [your application](https://www.mindstick.com/forum/34702/please-tell-me-what-is-cross-site-scripting-and-how-is-it-harmful-for-your-application) requires a database, and comes with built in data, what is the best way to ship that application?

1) Precreate the [sqlite database](https://www.mindstick.com/articles/1554/crud-operation-in-asp-dot-net-using-sqlite-database) and include it in the apk?

2) Include the SQL commands with the application and have it create the database and [insert the data](https://www.mindstick.com/forum/33761/is-arraylist-change-its-hashcode-after-insert-the-data) on first use?

The drawbacks I see

1) Possible sqlite version mismatches might [cause problems](https://answers.mindstick.com/qa/94662/can-google-chrome-updates-cause-problems-issues), and I currently don't know where the database should go and how to access it.

2) It may take a really long time to create and populate the database on the device.

[Your thoughts](https://answers.mindstick.com/qa/98233/who-said-this-quote-your-beliefs-become-your-thoughts-gandhi-or-margaret-thatcher)? [Pointers](https://www.mindstick.com/articles/1811/objective-c-pointers) to [documentation](https://answers.mindstick.com/qa/30462/what-is-documentation) regarding any issues would be great.


---

Original Source: https://www.mindstick.com/forum/23255/how-to-ship-an-android-application-with-a-database

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
