I want to access my Mysql-Database in the App I want to share in the PlayStore later. But what is the best way to connect to this DB? I use JDBC because it is very easy and I do not need any other things like PHP-scripts.
But if I use JDBC in my App I have to give this API the Credentials like DB-URL, username and password. If anyone would decompile the App he could see this credentials. So i wonder how you would connect safe to a DB via Android Apps. Do i need to do it via PHP-Scripts which are on the server?
Thank you