Answer the question
In order to leave comments, you need to log in
Sending data from Android application to MySQL database?
The database is hosted, communicates with the site. I want to send data to this database from an Android application in order to upload it to the site later. Tell me the simplest and most convenient way, security in this case is not important. The application is written in Java in Android Studio.
Answer the question
In order to leave comments, you need to log in
Server side api with singlepoint.
Which takes the desired values and gives the data in json
On the client (android application) - sending a request to this server and parsing the json
The easiest way, perhaps, is to use the Google Sheets API:
https://developers.google.com/sheets/api/guides/co...
That is, read / write table cell data via HTTP.
Since you are writing in Java, you can take Spring Boot and raise a small REST application on the server side.
Next, using okhttp search for android, send a POST request with the necessary data to the server.
The server processes JSON using jackson or gson, maps them into DTOs, and then into the model and saves them to the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question