The thing is, I need to save and retrieve a couple of values ​​(variables) in андроид application. But as I understand веб разработке bit confused. I do not need a website, the main thing is to be able to save data in the database and work with the API .

I wanted to ask if I should study php to write an API or are there already ready examples that suit my needs?

Closed due to the fact that the question is too general by the participants Dmitriy Simushev , vp_arth , rjhdby , Denis Bubnov , Naumov 14 Mar '17 at 14:48 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Not necessary to use PHP. Why not write it in java? - ilyaplot
  • 2
    Any language suitable for writing backends. PHP, Python, NodeJS, Java, GoLang, etc - sys_dev
  • Maybe skinte some link, as mentioned above, did not deal with the web. Need hosting and then what? - DevOma
  • I just need a quick version. Not reasonably just messing around for weeks. - DevOma
  • If I understand correctly, you need to configure CGI / WSGI and API requests will be sent to your script. Write it on anything, the output will go as a response from the server (here it is attentive - on the same Pythone, you first need to send a header) - DNS

1 answer 1

If you need to check the operation of the Android application (saving data in the database is not necessary), then the service apiary.io will do . Make a mocap and check your application.

If you still need to create and retrieve data from the database, you will have to configure a test server. I recommend installing LAMP on Amazon EC2 from the already assembled image .

Then install the composer and put any microfreemv, for example, Slim and simple ORM, for example idiORM. But it is necessary to program in this case, although not much.