stu567blue — 2012-04-29T16:56:54-04:00 — #1
Quick question. I have recently developed a website that enables people to post deals and offers directly onto the website through an android application. I have been told that I will need to develop an API as this assists with the overall security of the application.
However, I have thought wouldn't it be easier for me to just develop the entire application in Java and connect to the MYSQL DB via the tools available.
I'd like to know just how secure is connecting to a MYSQL DB via Android?
If anyone has any experience of this I'd love to hear from you.
eastcoast — 2012-04-29T19:01:45-04:00 — #2
Entirely insecure, if you're referring to opening a connection directly to the mysql process on a remote server.
You absolutely -must- have some server side processing between the app and the mysql database e.g a php script, to check the user submitted data is valid and to guard against malicious sql injection.
stu567blue — 2012-04-29T19:09:21-04:00 — #3
Hey East Coasts,
Thank you for your reply.
How would you go about doing that i.e. connecting to a PHP script in Java?? Is it a case of making Java read the file??
eastcoast — 2012-05-01T18:31:39-04:00 — #4
Yes use URLconnection and getdatastream. Java will read the response from the file, not the file content itself
mittineague — 2014-09-18T19:16:11-04:00 — #5
This topic is now archived. It is frozen and cannot be changed in any way.