3

I am currently developing an android application using eclipse and I already have a website developed in PHP and MySQL, can some one guide me how to connect to my website database through android for exchanging data

Housefly
  • 4,324
  • 11
  • 43
  • 70

2 Answers2

1

The simpliest, but maybe not so elegant way to do it, is writing special php-scripts for the queries, sending http requests from the android-app to these scripts and getting the results as json-arrays.

Check out this: http://www.helloandroid.com/tutorials/connecting-mysql-database

Mehmed Mert
  • 935
  • 1
  • 7
  • 24
0

You need a Webservice Written Using REST Protocol or SOAP protocol or SimpleXML....

Using any of the above three links you may communicate throught Mysql DB to interact ur Android App Requests

To connect the Android Application to Webservices below given Two Links could be helpful

Android App Development and Web Server Interactions

interacting with web services and android

UPDATED

Below Link Might be most helpful to you.. chk it

Connection to DB from Android Device

Community
  • 1
  • 1
OM The Eternity
  • 15,694
  • 44
  • 120
  • 182