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.


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.


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

链接地址: http://www.djcxy.com/p/48400.html

上一篇: 数据绑定到代码中的CLR属性

下一篇: 如何让Android应用程序与外部MySQL数据库进行通信