文件名称:androidandservlet
介绍说明--下载内容均来自于网络,请自行研究使用
android端和servlet端使用JSON交换数据信息的简单小例子,部分代码在JSP环境下实现,搞过Java WEB开发(JSP)的程序员,应该对Servlet不陌生,Json目前也是流行技术,所以说这个例子将Android、Json、Servlet三者结合起来,还是有一定参考价值的。
注意:服务器的IP,不要写成localhost了,即使在本机测试也要写上本机的IP地址,localhost会被当成模拟器自身的-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
注意:服务器的IP,不要写成localhost了,即使在本机测试也要写上本机的IP地址,localhost会被当成模拟器自身的-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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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
....................\..