Adam Tal
Adam Tal

Reputation: 81

How to have Android App communicate with external MySQL db

I am really confused on how to get data in and out of an android app from the internet.

I imagined that I would store information in the mysql db on the server I already have set up. But from what I have read, I would need some type of in-between web service to make queries with data sent from the app.

Can anybody toss me some tips on how to get something like this started.

Or, if you know of a better way, let me know about it.

Upvotes: 8

Views: 21113

Answers (2)

EboMike
EboMike

Reputation: 77722

This question has been asked several times, for example here: How to get from a MySql server to an Android app?.

Bottom line - you don't connect directly. You have something on your server (like RESTful) that you connect with via HTTP.

Upvotes: 4

prolink007
prolink007

Reputation: 34534

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

Upvotes: 0

Related Questions