In order to connect your android app to the server you would need to make an HTTP request that will run your server side script (php for example), query a database and return a response to android device as a JSON object. Check this detailed tutorial:
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
It shows an example of how to use android, php and mysql database.
2
solved Android Mobile Applications [closed]