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

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.

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.