How users can connect database in Android app? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How users can connect database in Android app?

I have a simple doubt about the Android apps. I am developing an Android app using python kivymd. I am using MySQL database for storing user data. If I convert my app into apk and publish it in Play Store, how can users able to use the database? How to make the database available for all the users 24/7 ?

3rd Oct 2023, 4:34 PM
Pardha Saradhi
5 Antworten
+ 7
Your database should be available online. One way you have account by internet provider with database. Another way, at home you can build your own server and connect to the Internet. It is a bit more demanding.
3rd Oct 2023, 10:01 PM
JaScript
JaScript - avatar
+ 1
Write code first and if problem arises akm it in stackoverflow(it would be best place to ask) plus kivy lacks proper documentation (i mean , official documentation is not beginner friendly compared to tkinter or pyqt). So it is going to take extra effort..
3rd Oct 2023, 5:12 PM
Bishnu Chalise
Bishnu Chalise - avatar
+ 1
Bishnu Chalise It will be a problem. Because SQL is connected with my localhost
3rd Oct 2023, 6:24 PM
Pardha Saradhi
+ 1
Its possible to connect to mysql remotely but it should never be done. The only way you should be using shared database is building a rest api.
5th Oct 2023, 5:24 PM
Toni Isotalo
Toni Isotalo - avatar
0
Is your apps designed to work without web connection? Python has a built-in database module 'sqlite3', it should be enough to handle a local database. If the apps requires to work with a database on net, you have to do make some research.
4th Oct 2023, 2:29 AM
Wong Hei Ming
Wong Hei Ming - avatar