I have a MySql database with some sports results in it. I want to write an Android application to display these data on mobile phones.
I´ve searched on the internet for this issue, and I think it is not possible to have a direct connection between the MySql database and the Android application. (Is this right?)
So my question is the following: How can I have access in the android application to the MySql database in order to display some of the data?
Android does not support MySQL out of the box. The "normal" way to access your database would be to put a Restful server in front of it and use the HTTPS protocol to connect to the Restful front end.
MySQL. MySQL is one of the most well-known SQL databases on the market, so it is also commonly used within the development of mobile applications.
Try this method out. I will be using this method for the current project i am working on.
You basically create a php script on a server and use http posts to send the data to the script, read the tutorial linked below for better explanation.
mysql/android tutorial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With