Mysql with android

0

I looked in various forums on how to integrate mysql with android, a very simple thing, like to list data from a saved table on an external mysql server.

Using normal java I was able to do it using jdbc. I tried using the same with android but I had problems with the jar when importing into the project. I looked for other alternatives and saw about JSON. However as I do not have PHP knowledge, the method taught using PHP

My question is: Is there any way to read data from a mysql table just using java on android, without php? Is it possible with sqlite or is this just for internal banks in the system ??

    
asked by anonymous 01.06.2016 / 22:33

1 answer

3

SQLite is the internal bank of your Android application. To access a MySQL on an external server you can use JDBC but it is not recommended to do so for several reasons. It is a good idea to call Web Services present on the server (which does not have to be in PHP, it can be in Java) that returns the database data in JSON format.

    
02.06.2016 / 01:13