Updated answer:
You can use a REST API to do that. Here's a good article on that subject: Calling RESTful services from your Android app
If you need help on creating the Rest webservices you can browse stackoverflow. There are tons of info, like this one: REST/JSON Web Services Java EE Framework or this one: Best Practices for securing a REST API / web service