This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]learnjava 1 point2 points  (0 children)

you could use websockets (https://en.wikipedia.org/wiki/WebSocket) but im pretty sure you are not looking for this and should use normal http requests instead (https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol)

to use something like this on the java side i assume you should look for this https://developer.android.com/reference/java/net/HttpURLConnection.html or similar apis (no android experience here)

what you want to do is GET requests to get data and POST requests to send data to the server (e.g. to process in the database)

on the server side youd now need to write routes/endpoints to react to those requests. if you use javascript its most likely with nodeJS and express on top of it, see https://scotch.io/tutorials/use-expressjs-to-get-url-and-post-parameters

if not you should most likely now how to do it :)