Hello. Could not find a similar question. See: I have a mobile application written in Java. When you click on the button, the data should be transferred to the server, which is, say, not near me. I have the server name, login, password and the name of the database itself (SQL) where the data should be transferred. Where can I enter the username, password, etc. in the code? I do not understand something. What should it look like?

  • Start from here - keywords for googling: restful, retrofit - Barmaley
  • Android Post Request + AsynkTask Barmaley , Retrofit for a beginner is it difficult yet is the API ready? - Alexey
  • I just did not process the lists in the application. - Artem Smirnov
  • I apologize, apparently, not that API was meant, what I thought) - Artem Smirnov
  • It’s impossible to write directly to the server database from the mobile application, you also need a server API between them. Search and read something about client-server applications. - Eugene Krivenja

1 answer 1

Directly enter data from the application to the database, let's say softer, bad tone, if this database is not located on the device itself. You can not do the server part, which will receive requests from the application and change the data in the database. The classic way: Mobile application <- (REST API) -> Server <-> DB