0

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?

Philip
  • 1,068
  • 3
  • 12
  • 21

3 Answers3

1

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.

madteapot
  • 2,208
  • 2
  • 19
  • 32
1

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

markubik
  • 646
  • 4
  • 9
  • can I see the database structure anywhere? like is there something similar to phpmyadmin? – Philip Apr 03 '14 at 23:10
  • Rather not. It is stored and managed internally. SQLite on Android is rather just about storing in tables than more complex administration. – markubik Apr 04 '14 at 09:13
1

Yep, there is SQLite

Here is a question asking for examples.

Here is the SQLiteDatabase class. Goo start point.

Community
  • 1
  • 1
Vic Vuci
  • 6,993
  • 6
  • 55
  • 90