Mysql with android

Asked

Viewed 102 times

0

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

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

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

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. The right is to call Web Services present on the server (which do not need to be in PHP, may be in Java) which return the database data in JSON format.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.