Description: android client and servlet end exchange data using JSON simple small example, part of the code in a JSP environment to achieve, engaged Java WEB Development (JSP) programmers, should be no stranger to the Servlet, Json is currently the popular technology, so that this examples of the Android, Json, Servlet three together, or have some reference value.
Note: The server s IP, instead of writing localhost, even in this test also write on the IP address of the machine, localhost will be used as the simulator itself
To Search:
File list (Check if you may need any files):
android端和servlet端\JsonDemo\.classpath
....................\........\.project
....................\........\AndroidManifest.xml
....................\........\bin\AndroidManifest.xml
....................\........\...\classes\com\jsondemo\activity\BuildConfig.class
....................\........\...\.......\...\........\........\MainActivity$1.class
....................\........\...\.......\...\........\........\MainActivity$MyTask.class
....................\........\...\.......\...\........\........\MainActivity.class
....................\........\...\.......\...\........\........\R$attr.class
....................\........\...\.......\...\........\........\R$dimen.class
....................\........\...\.......\...\........\........\R$drawable.class
....................\........\...\.......\...\........\........\R$id.class
....................\........\...\.......\...\........\........\R$layout.class
....................\........\...\.......\...\........\........\R$menu.class
....................\........\...\.......\...\........\........\R$string.class
....................\........\...\.......\...\........\........\R$style.class
....................\........\...\.......\...\........\........\R.class
....................\........\...\classes.dex
....................\........\...\dexedLibs\android-support-v4-90dd06773a2da7ad92663b01ae3915d3.jar
....................\........\...\jarlist.cache
....................\........\...\JsonDemo.apk
....................\........\...\res\drawable-hdpi\ic_launcher.png
....................\........\...\...\.........mdpi\ic_launcher.png
....................\........\...\...\.........xhdpi\ic_launcher.png
....................\........\...\...\..........xhdpi\ic_launcher.png
....................\........\...\resources.ap_
....................\........\gen\com\jsondemo\activity\BuildConfig.java
....................\........\...\...\........\........\R.java
....................\........\ic_launcher-web.png
....................\........\libs\android-support-v4.jar
....................\........\lint.xml
....................\........\proguard-project.txt
....................\........\project.properties
....................\........\res\drawable-hdpi\ic_launcher.png
....................\........\...\.........mdpi\ic_launcher.png
....................\........\...\.........xhdpi\ic_launcher.png
....................\........\...\..........xhdpi\ic_launcher.png
....................\........\...\layout\activity_main.xml
....................\........\...\menu\main.xml
....................\........\...\values\dimens.xml
....................\........\...\......\strings.xml
....................\........\...\......\styles.xml
....................\........\...\......-sw600dp\dimens.xml
....................\........\...\.........720dp-land\dimens.xml
....................\........\...\.......v11\styles.xml
....................\........\...\.........4\styles.xml
....................\........\src\com\jsondemo\activity\MainActivity.java
....................\ServerJsonDemo\.classpath
....................\..............\.mymetadata
....................\..............\.project
....................\..............\.settings\.jsdtscope
....................\..............\.........\org.eclipse.jdt.core.prefs
....................\..............\.........\org.eclipse.wst.jsdt.ui.superType.container
....................\..............\.........\org.eclipse.wst.jsdt.ui.superType.name
....................\..............\src\com\jsondemo\servlet\JsonServlet.java
....................\..............\WebRoot\index.jsp
....................\..............\.......\META-INF\MANIFEST.MF
....................\..............\.......\WEB-INF\classes\com\jsondemo\servlet\JsonServlet.class
....................\..............\.......\.......\lib\commons-beanutils-1.6.jar
....................\..............\.......\.......\...\commons-collections-3.2.1.jar
....................\..............\.......\.......\...\commons-lang-2.6.jar
....................\..............\.......\.......\...\commons-logging-1.0.4.jar
....................\..