Connecting Android to a Website for Database Calls
I am currently developing an android application using eclipse and I already have a website developed in PHP and MySQL, can anyone advise me how to connect to my database via android for data exchange.
The easiest, but maybe not very elegant way is to write special php scripts for requests, sending HTTP requests from android-app to these scripts and receiving the results as json arrays.
Check out: http://www.helloandroid.com/tutorials/connecting-mysql-database
You need a web service written with REST Protocol or SOAP or SimpleXML ....
Using any of the above three links, you can communicate via Mysql DB for ur interaction Android App Requests
To connect Android app to web services below, the two links given might be helpful
Android Application Development and Interaction with Web Servers
interacting with web services and android
UPDATED
Below link May be very helpful to you .. chk it
Connecting to DB from Android device