|
@ -42,27 +42,6 @@ public class MobileNetWork extends Plugin {
|
42
|
42
|
super(wademobile);
|
43
|
43
|
}
|
44
|
44
|
|
45
|
|
public void uploadFile(JSONArray param) throws Exception {
|
46
|
|
String path = param.getString(0);
|
47
|
|
uploadFile(path);
|
48
|
|
}
|
49
|
|
|
50
|
|
public void uploadFile(String path) throws Exception {
|
51
|
|
// TODO Auto-generated method stub
|
52
|
|
/*
|
53
|
|
* final File file = new File(path); if(!file.exists()){
|
54
|
|
* this.context.tip(path+Messages.FILE_NOT_EXIST); return; } final
|
55
|
|
* String url = MobileConfig.getInstance().getUploadUrl();
|
56
|
|
* if(url==null||url.equals("")){
|
57
|
|
* this.context.tip(Messages.UPLOAD_CONFIG); return; }
|
58
|
|
* this.context.runOnUiThread(new Runnable() { public void run() { try {
|
59
|
|
* HttpTool.fileRequest(url,file);
|
60
|
|
* MobileNetWork.this.context.tip(Messages.UPLOAD_SUCCESS); } catch
|
61
|
|
* (Exception e) { MobileNetWork.this.context.tip(e.getMessage()); } }
|
62
|
|
* });
|
63
|
|
*/
|
64
|
|
}
|
65
|
|
|
66
|
45
|
public void setSmsListener(JSONArray param) throws Exception {
|
67
|
46
|
String telString = param.getString(0);
|
68
|
47
|
boolean isEscape = param.getBoolean(1);
|
|
@ -311,4 +290,27 @@ public class MobileNetWork extends Plugin {
|
311
|
290
|
}
|
312
|
291
|
}
|
313
|
292
|
}
|
|
293
|
|
|
294
|
public void uploadWithServlet(JSONArray param) throws Exception {
|
|
295
|
|
|
296
|
JSONArray filePaths = param.getJSONArray(0);
|
|
297
|
String dataAction = param.getString(1);
|
|
298
|
String dataParam = param.getString(2);
|
|
299
|
uploadWithServlet(filePaths, dataAction, dataParam);
|
|
300
|
}
|
|
301
|
|
|
302
|
public void uploadWithServlet(JSONArray filePaths, String dataAction, String dataParam) {
|
|
303
|
// TODO Auto-generated method stub
|
|
304
|
|
|
305
|
}
|
|
306
|
|
|
307
|
public void uploadFile(JSONArray param) throws Exception {
|
|
308
|
String path = param.getString(0);
|
|
309
|
uploadFile(path);
|
|
310
|
}
|
|
311
|
|
|
312
|
public void uploadFile(String path) throws Exception {
|
|
313
|
// TODO Auto-generated method stub
|
|
314
|
|
|
315
|
}
|
314
|
316
|
}
|