Browse Source

文件上传

huangbo 9 years ago
parent
commit
7d36f2150e

+ 2 - 1
display-client/assets/mobile-action.xml

@ -12,8 +12,9 @@
12 12
	<action name="dataRequest" class="com.wade.mobile.func.MobileNetWork" method="dataRequest"/>
13 13
	<action name="httpRequest" class="com.wade.mobile.func.MobileNetWork" method="httpRequest"/>
14 14
	<action name="storageDataByThread" class="com.wade.mobile.func.MobileNetWork" method="storageDataByThread"/>
15
	<action name="httpDownloadFile" class="com.wade.mobile.func.MobileNetWork" method = "httpDownloadFile"/>
16 15
	<action name="shareByBluetooth" class="com.wade.mobile.func.MobileNetWork" method="shareByBluetooth"></action>
16
	<action name="uploadWithServlet" class="com.wade.mobile.func.MobileNetWork" method="uploadWithServlet"></action>
17
	<action name="downloadWithServlet" class="com.wade.mobile.func.MobileNetWork" method="downloadWithServlet"></action>
17 18
	<!-- MobileUI -->
18 19
	<action name="tip" class="com.wade.mobile.func.MobileUI" method="tip"/>
19 20
	<action name="openUrl" class="com.wade.mobile.func.MobileUI" method="openUrl"/>

+ 3 - 3
display-client/assets/mobile-config.xml

@ -1,11 +1,11 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<configs>
3 3
    <!-- 请求主机名或请求地址。包括服务器的ip地址和端口 -->
4
	<config name="request_host" value="http://192.168.51.103:8080"/>
4
	<!-- <config name="request_host" value="http://192.168.51.103:8080"/> -->
5 5
	<!-- 必须。10.0.2.2为Android模拟器的保留ip地址。访问到本机电脑时使用 -->
6
	<!-- <config name="request_host" value="http://10.0.2.2:8080"/> -->
6
	<config name="request_host" value="http://10.0.2.2:8080"/>
7 7
	<!-- 必须。容器应用名或请求根路径 -->
8
	<config name="request_path" value="/display-server"/>
8
	<config name="request_path" value="/display"/>
9 9
	<!-- 必须。数据接口的servlet路径 -->
10 10
	<config name="request_servlet" value="/mobiledata"/>
11 11
	<!-- 非必须,默认应用名。sd卡上的应用根目录名字,解决应用中文名的问题 -->