Thanks, friends, I understand what you advise me, but I just want to clarify that it is NOT my hosting, it is the hosting of my client, who has asked me for an Android application to access the contents of its database, which is in his private hosting.
He won't let me install anything, even though he has the port open that mysql uses.
So I am not going to invest my money in a hosting to access the client's hosting. He is not going to pay for it either.
So this is the only solution I have left, direct access.
Thanks again.