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
Asked
Active
Viewed 1,717 times
2 Answers
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
Community
- 1
- 1
OM The Eternity
- 15,694
- 44
- 120
- 182
-
I am using Apache server which uses REST protocol – Housefly Mar 23 '12 at 09:17
-
If ur Using Apache server in that Case RESTful PHP webservices the lib you need to use – OM The Eternity Mar 23 '12 at 09:25
-
check this link: http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ – Andy Mar 23 '12 at 10:21