Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get from a MySql server to an Android app?

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?

like image 567
Fabian Avatar asked May 24 '10 17:05

Fabian


People also ask

Can Android app connect to MySQL database?

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.

Can I use MySQL for mobile application?

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.


1 Answers

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

like image 141
prolink007 Avatar answered Oct 11 '22 18:10

prolink007