
Android网络通信
berber78
这个作者很懒,什么都没留下…
展开
-
Android下载文件的进度条提示(网络通信部分示例)
URL url = newURL(http://somewhere.com/some/webhosted/file); HttpURLConnectionurlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod("GET"); urlConnection.set原创 2014-12-20 19:44:32 · 1289 阅读 · 0 评论 -
Android中使用HttpGet和HttpPost访问HTTP资源(一)
先看下面一篇文章: ------------------------------------------------------------------------------------------------------- 需求:用户登录(name:用户名,pwd:密码) (一)HttpGet :doGet()方法 //doGet():将参数的键值对附加在url后面来传递 p原创 2012-03-09 11:24:11 · 18305 阅读 · 1 评论