Answer the question
In order to leave comments, you need to log in
How to make a simple server that exchanges one variable with an Android application?
Hello. There is an application in java. I don't know much about servers. I know a little PHP. Please explain how to make the application, when the button is clicked, communicate with the server on my computer (if possible),
and update the variables in the program. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Since such a dance has already begun, you can simply put a text document and load it
When will you learn how to use the search ..
Android application sends a request to the server, php script or something else gives the answer.
script.php:
<?php
$var = "Something";
echo $var;
http://site.ru/script.php
) via Android, all this is on the Internet
just put the json file on any hosting and request it from the application.
If it is not critical that the data is on your computer, then it is better to use Parse.com for these purposes. This is a great backend option for mobile applications, and in general, when you don’t want to bother with the backend. There are other similar services.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question