Philip
Philip

Reputation: 1078

Database inside of Android

I wonder whether there is a way to store data in like a MySQL inside of Android OS. I have more complex data that I need to save and I dont think SharedPreferences will work. Is there a predefined way, and how can I access it? Is it in SQL?

Upvotes: 0

Views: 311

Answers (3)

madteapot
madteapot

Reputation: 2284

well there is SQLite database which is very light weight database to store data in android..

Edit when you start working with SQLite on android you should not mix it up with MySQL or PHPMyAdmin or any other complex database structure. SQLite is just about storing some information on your device internally and accessing it for some purpose. It is not used for complex database tasks that you do in PhpMyAdmin.

Rather you should visit the links given by @Vee in the answer.

Upvotes: 1

Vic Vuci
Vic Vuci

Reputation: 7051

Yep, there is SQLite

Here is a question asking for examples.

Here is the SQLiteDatabase class. Goo start point.

Upvotes: 1

markubik
markubik

Reputation: 671

Of course there is. On Android each application has own place for database (SQLite). Read http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html for further details. It's really easy to maintain

Upvotes: 1

Related Questions