Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a SQL database for android?

Tags:

android

sqlite

Hey I want to know how to create a database for android and not a one to be edited by the user, a database that is complete and is in the app apk. Do I use excel or access then add the database to the app folders or what should I do? all I could find on the internet is how to make a database that it's data is added using the app itself. So how do I make a database?

like image 1000
Abaza Youssef Avatar asked Feb 24 '26 21:02

Abaza Youssef


1 Answers

You just have to add a sqlite file with the database to the app resources if i remember right, and use it with a DBHelper class like these but adapted to your app needs.

I personally create and edit the sqlite files with this Firefox extension.

like image 154
CyborgFish Avatar answered Feb 27 '26 09:02

CyborgFish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!