views:

497

answers:

2

Hi

i have an 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?

Thank you for your answers!

Fabian

+1  A: 

You may want to look at C2DM (http://code.google.com/android/c2dm/).

A common way is to write a REST web service and have Android call that and get the data from the server.

If you want to push it, if the data is small enough, you could use SMS and just send the data as a text message to the device.

You don't want to open access to your database so by using the web service you can better protect your database.

James Black
I second the REST web interface method
HXCaine