How to write a client-server application for Android?


Want to write your client-server application, for example, for working with VK api, but do not really understand where to start.

Written a bunch of simple apps for Android and now I want to go into the network, so we need to go further.

Thank you
June 14th 19 at 20:02
2 answers
June 14th 19 at 20:04
In client-server history is roughly 3 ingredients:
1) Server - this server VK
2) Client - this is what you want to write
3) Protocol - in your case JSON over HTTP

In sum, all these 3 components in VK are implemented in the form of an architectural pattern, REST

In the end, you will need:
1) to Study implement RestFull API in VK and Android
2) to Study json
3) to Study the implementation of HTTP in Android
June 14th 19 at 20:06
Well, perhaps you need to start with learning the Api vk if you already have experience developing for Android.
Have experience with Android, but no understanding of how to work with the network at all. - kory.Tow commented on June 14th 19 at 20:09
Teach sockets. To begin to create in Java(without Android) some sample application, dopustim the client program which writes the text and Ip, and the program server which is triggered to define a listening port and to catch and display the incoming text. Just understand the basics. Then try to send some sort of get request to some site, get the html response and write it to a file, you get basically a program which saves websites on the comp... - Alene56 commented on June 14th 19 at 20:12

Find more questions by tags Android