Transfer and parsing of JSON between androidclient and service side (JSP) "attached effect drawing source code"

Source: Internet
Author: User

Recently, there is a project need to use the transmission of JSON, before not too understand, in the Internet to find some relevant information, wrote a small demo, to achieve the basic function: Androidclient send JSON to the server, the server to use JSP to receive, After parsing, return to Client,client as JSON to receive printing, first look at the effect of execution, the source code will be given at the end of the article.

1. Server: Parse print after receiving JSON, then send JSON to client

2.client, after receiving the JSON returned by the server to print



Simple introduction of the following source code:

The server uses json.jsp to receive parsing of the Json,json the client passes through the jar package under the Lib folder, which needs to be executed using Tomcat, the source code folder structure such as the following:



The client is very easy, all implemented in Mainactivity, the source code folder structure such as the following:





Source code Download point here ^ ^


Transfer and parsing of JSON between androidclient and service side (JSP) "attached source code"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.