The97Pasquale2
The97Pasquale2

Reputation: 123

What's the best way to connect an Android App to MySQL?

I would like to write an Android App (with Android Studio) which uses a MySQL database.

What's the best way to implement it?

I have found on internet that I should write php files which send queries to the database. Then the php page return a JSON object which should be processed by the Android App (or something like that...).
Is this solution safe? Because I have to handle sensitive data like emails or GPS position.

Or else, are there other safe ways to let Android App connect to and retrieve information from the database?

Upvotes: 0

Views: 477

Answers (1)

Rajesh
Rajesh

Reputation: 3778

You can call a web service which connects to your server, and a back-end program written in nodejs or PHP or Java or Python or any other programming language which has support (connectors/libraries) for MySQL database.

Upvotes: 1

Related Questions