I am writing a mobile application that should receive data from MySQL.
What methods exist for connecting MySQL with Android, and which one is the most optimal?
For SQLite there is a class, and there is no class for working with remote DBMS?
I am writing a mobile application that should receive data from MySQL.
What methods exist for connecting MySQL with Android, and which one is the most optimal?
For SQLite there is a class, and there is no class for working with remote DBMS?
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
To work with MySQL directly, you can use jdbc from the java.sql package.
But this is EXTREMELY RECOMMENDED due to security issues. If you are writing this for educational purposes, then it's fine, but in real applications you don’t need to do that. All ports for such systems should be closed and access should be carried out through specially written services.
Source: https://ru.stackoverflow.com/questions/826316/
All Articles