String urlPath = new String("http://127.0.0.1:8080/MCServer/mobilesx.do??token=1475197252625&fil ...
全局变量 注册Url private String urlPath http: . . . : VideoPlay regist onCreate中 实现zhuce 方法 注册方法 注册方法 private void zhuce new Thread public void run try 获得输入框输入的内容 String phonenum et phone num.getText .toSt ...
2016-08-26 11:22 0 9621 推荐指数:
String urlPath = new String("http://127.0.0.1:8080/MCServer/mobilesx.do??token=1475197252625&fil ...
//清单文件中添加权限 <uses-permission android:name="android.permission.INTERNET"/> new Thread( ...
1、服务器后台使用Servlet开发,这里不再介绍。 2、网络开发不要忘记在配置文件中添加访问网络的权限 3、网络请求、处理不能在主线程中进行,一定要在子线程中进行。因为网络请求一般有1~3秒左右的延时,在主线程中进行造成主线程的停顿,对用户体验来说是致命的。(主线程应该只进行 ...
HttpURLConnection发送GET、POST请求 /** * GET请求 * * @param requestUrl 请求地址 * @return */ public String get(String requestUrl) { HttpURLConnection ...
get方式和post方式的区别: 1.请求的URL地址不同: post:"http://xx:8081//servlet/LoginServlet" get:http://xxx:8081//servlet/LoginServlet?username=root&pwd=123 ...
get方式和post方式的区别: 1.请求的URL地址不同: post:"http://xx:8081//servlet/LoginServlet" get:http://xxx:8081//servlet/LoginServlet?username=root&pwd=123 2. ...