A
A
Allsir2020-05-27 08:07:13
MySQL
Allsir, 2020-05-27 08:07:13

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

3 answer(s)
V
Vladislav Orlov, 2020-05-27
@haveacess

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

R
Roman Mirilaczvili, 2020-05-27
@2ord

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.

O
Orkhan, 2020-05-27
Hasanly @azerphoenix

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 question

Ask a Question

731 491 924 answers to any question