Mohamadreza02 Mohamadreza02 - 2 years ago 80
SQL Question

connect static database into my android app

guys I'm a beginner Android development, and I want to create a static database and then connected to my android application my Wishes:
user register from the application and that database should perform CRUD operation
I don't know how do I create it that database
I need help someone help me
Thanks

Answer Source

I want to create a static database and then connected to my android application

The things you probably looking is SQLiteDatabase

SQLite is a open source SQL database that stores data to a text file on a device. Android normally comes in with built in SQLite database implementation.

Here is one of the Android SQLite Database Tutorial

P/S : If you have uninstalled the app, all the data will de gone/deleted together.


Another approach is using PHP script then connects to MySQL database to perform the operation. User still able to get back his/her data as long as he/she still remember username and password.

Example: How to connect Android with PHP, MySQL

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download