Use web service to achieve this task.
In order to use web service in android,please visit this links.
- kSoap2 library used for calling web service from android
device. - Calling simple web service in android.
- Calling web service & uploading file through HttpClient
- Web Service That Returns An Array of Objects With KSOAP – For
complex objects. - Accessing a JAX-WS web service from Android
- How-to: Android as a RESTful Client