background
As a normal office worker, I always want to do something that I think is meaningful, so I'm going to set up a studio, and although I'm in the process of preparing a new one, I find my abilities are limited until I recently talked to some of my technical cattle friends, Also ready to join a small team. Just I as the studio "salesman", feel the need to understand, so that good and customer communication, propose solutions, but also convenient for everyone to discuss the plan. For example, prior to the purchase of online orders, customers can use the app direct order, merchants processing orders. At that time I do not know very well, I can not answer, now and friends after the exchange, ready to study.
Framework
① customer submits order to Web server
②web Server Processing Orders
③web server reply processing results to Customer
④web Server Push message to merchant
⑤ Merchant Inquiry Order
To do this, I first need to know two knowledge points, the first one is the client (Android) and the server (PHP) data through JSON, the second is the server (PHP) push message to the client (Android).
End
Oh, has not begun to the end, in writing this article, I have to understand these, the article to do their best to describe in detail, but inevitably ignore some of the details, please crossing forgive me. This article presents a framework, the next section specifically describes the implementation method.
/******************************************************************************
* Original articles, reproduced please specify the website: http://blog.csdn.net/mybelief321/article/details/45422197
* Luyang High Tech Studio
* Web Address: www.bigbearking.com
* Business Cooperation qq:1519190237
* Business Scope: Website construction, desktop software development, Android\ios development, image and film post-processing, PCB design
******************************************************************************/
Android client interacts with PHP server (i)