My application requires inserting data from the device into a SQL table. I have read that connecting directly to a database from an Android device via something like JDBC is usually a poor idea since if a user really wanted to, they could retrieve credentials from the APK, and in addition to this, the performance can be very slow at longer distances.
However, in my scenario no credentials are embedded in the APK; instead users will enter database & login details once a connection is required. Additionally, the only databases users will be connecting to reside on the same network the devices are connected to.
With this in mind, is it okay to implement a direct connection to the db or are there other security/performance issues I am unaware of?