Interaction between Android client and PHP server (1) --- framework overview, android Server
Background
As a common office worker, I always want to do things that I think are meaningful. As a result, I am preparing to set up a studio. Although I am in the preparation stage, some friends have raised some requirements before, I found that my capabilities were still limited. I had to talk to some technical colleagues recently, and I was ready to join a small team. As a "salesman" of the studio, I feel that it is necessary to know about it. In this way, I can communicate with the customer and propose a solution, so that we can discuss the solution. For example, an online order submitted by a merchant requires that the customer can directly place an order using the APP, and the Merchant can process the order. At that time, I didn't understand it very well. I couldn't answer it myself. Now, after talking with my friends, I am ready to learn.
Framework
① The customer submits the order to the Web server
② Web servers process orders
③ The Web server returns the processing result to the customer
④ The Web server pushes messages to sellers
⑤ Merchants query orders
To complete the above functions, I need to first understand two knowledge points. The first is the data interaction between the client (Android) and the server (PHP) through JSON, and the second is the server (PHP) push messages to the client (Android ).
End
Well, it's just the end of this Article. before writing this article, I have already understood it. I tried my best to describe it in detail, but I will inevitably ignore some details, sorry. This article introduces the framework and the implementation method in the next section.
/*************************************** ***************************************
* Original article, reproduced please note the URL: http://blog.csdn.net/mybelief321/article/details/45422197
* Luyang Gaoke Studio
* Address: www.bigbearking.com
* QQ For Business Cooperation: 1519190237
* Business model: website construction, desktop software development, Android/IOS development, image post-processing, and PCB design
**************************************** **************************************/