I suggest you use the RESTful Web Service in Java using Jersey as an intermediate layer between your Android application and the MySQL server. You can transfer data in JSON (my proposal for a mobile application), xml or palin text to your Android application.
You can find the benefits of using the web service on your system in the @Elad answer: Best way to access a remote database: through webservice or direct access to DB?
Also, if you decide to develop a different smartphone platform for your system, you just need to reuse the same web service. As a result, this web service can be considered as a common protocol for the mobile user of your system.
I used Hibernate to map data to a MySQL database. RESTful service using hibernation hosiery
If you decide to follow this approach, please note that it is highly recommended that you share your hibernation items with your services in Jersey. You need to connect the DAO to your Service Level. look what @Rick Mangi wrote to me: REST with Java (JAX-RS) using jersey and sleep mode
This is also a good approach to use the HTTP client in your Android application, as it supports the @GET, @POST, @DELETE and @PUT commands, and you can easily talk to your database, for example HTTP GET Request
source share