0

I am developing an app in Android. I would like to attach a database (created in C++) to my app Android that my Android app could read. In which format should I create this database with my C++ program?

6 Answers 6

6

Android provides a built in SQLite database, which is used by the applications developed for it. The Android SDK provides a well-defined, easy-to-use API to this database, and as long as you don't have a real special need for your own database, I would suggest using it.

Sign up to request clarification or add additional context in comments.

Comments

1

You might want to have a look at sqlite (www.sqlite.org/).

Comments

1

sqlite - http://developer.android.com/guide/topics/data/data-storage.html

Comments

1

SqlLite is the built-in database. Portable across Android, iPhone, HTML5 and just about every embedded system.

I take it that your question is how to create a database on a host computer (using C++) and transfer it to the Android App. If so, then have your C++ program create a SqlLite database on your host computer and then either package the database with the app, or download it into the App's data folder from a server.

Comments

0

http://realm.io "Realm is a mobile database: a replacement for SQLite & Core Data Realm can save you thousands of lines of code & weeks of work, and lets you craft amazing new user experiences."

Comments

0

For C++ program you can use C/C++ Interface For SQLite. Check out the tutorial An Introduction To The SQLite C/C++ Interface.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.