分享

android

 quasiceo 2015-04-25
android-async-http 异步 HTTP 客户端开发包
官网地址 https://github.com/loopj/android-async-http
开发语言 Java
开源licence Apache
运行OS环境 Android

android-async-http 是 Android 上的一个异步 HTTP 客户端开发包。
主要特性: Make asynchronous HTTP requests, handle responses in anonymous callbacks HTTP requests happen outside the UI thread Requests use a threadpool to cap concurrent resource usage GET/POST params builder (RequestParams) Multipart file uploads with no additional third party libraries Tiny size overhead to your application, only 19kb for everything Automatic smart request retries optimized for spotty mobile connections Automatic gzip response decoding support for super-fast requests Optional built-in response parsing into JSON (JsonHttpResponseHandler) Optional persistent cookie store , saves cookies into your app's SharedPreferences

android-async-http 的相关文章 (找到 65 条结果) 查看更多
Android网络请求库——android-async-http
在iOS开发中有大名鼎鼎的ASIHttpRequest库,用来处理网络请求操作,今天要介绍的是一个在Android上同样强大的网络请求库android-async-http,目前非常火的应用Instagram和Pinterest的Android版就是用的这个网络请求库。这个网络请求库是基于Apache HttpClient库之上的一个异步网络请求处理库,网络处理均基于Android的非UI线程,通过回调方法处理请求结果。 其主要特征如下: 处理异步Http请求,并通过匿名内部类处理回调结果 Http请求均位于非UI线程,不会阻塞UI操作 通过线程池处理并发请求 处理文件上传、下载 响应结果自动打包JSON格式 ...
http://blog.csdn.net/ryantang03/article/details/8824081
Android异步任务 android-async-http
http://my./sisuer/archive/3348.html?f_section=hot 今天介绍下 第9条 android-async-http 一、异步任务第一步 开始运用的是 android AsyncTask介绍 这篇文章中的技术, 网络请求应该是HttpUtil 工具类,这样的请求可以以get 和post方式进行网络请求, 而参数直接使用url方便在浏览器上查看结果。 二、android-async-http 具体的使用方法在上面blog的下载中有例子,而我要说的也就是一些特殊处理。 客户端在处理文件提交时需要考虑服务器的接收方式,现在大多的服务器由Java的三大框架构成。 在Struts2中 自定义的封装了处理文件及对象类型数据的处理。 如果需要提交多个文件,就要以file[0],file[1]....这样提交,并在服务器对象方式接收文件数组。 而服务器的接收
http://blog.csdn.net/ma969070578/article/details/8995868
android开源框架android-async-http使用
android-async-http开源框架可以 是我们轻松的获取网络数据或者向服务器发送数据,使用起来也很简单,下面做简单介绍,具体详细使用 看官网: https://github.com/loopj/android-async-http 1. 新建项目,去官网下载zip包,解压,打开releases文件,把里面最新的jar包,考入项目工程libs目录下, 引入包。 2.通过1,就可以使用了 ,很简单 ,下面是自己写的demo ,用它提供的各种不同方法完成从服务器获取一个json数据: 查看源码 打印 ? 01 ...
http://blog.csdn.net/wangwei_cq/article/details/9453345
关于开源项目android-async-http
前几天CSDN上有个介绍github上比较火的android开源项目,其中一个就是android-async-http,于是就下载下来学习了下。看了下源码,其实就是对apache httpclient的封装,可能httpclient使用起来比较繁琐,经这么封装以后,使用起来就很简单了,只需要在回调函数里写上自己想实现的代码即可。有一个功能我比较感兴趣,就是发生异常时的请求retry功能。以下代码就可以实现 httpClient.setHttpRequestRetryHandler(new RetryHandler(DEFAULT_MAX_RETRIES)); 注意这里httpClient是DefaultHttpClient 其实httpclient里就有这个功能,这里还是进行了封装。项目中的RetryHandler类通过实现HttpRequestRetryHandler接口来实现retry功能。当异常发生时就会调用RetryHandler类中的public boolean retryRequest(IOException exception, int executionC ...
http://blog.csdn.net/liudemingbingyu/article/details/8915062
android常用开源库分享
目录:[ - ] android常用开源库分享 异步ImageView ImageCache NewQuickAction ImageViewTouch awsome-3D-listview android-common-tookit android-uitableview android-viewbadger 瀑布流 http请求封装包 - android-async-http android常用开源库分享 这次就介绍了这些android开源库,各位有好介绍的可以私信我 SinaWeiBo 我的博客是 慕容博客 ,欢迎来和我交流 异步ImageView android-smart-image-view 和 android-async-http 是同一个作者,这个是异步加载图片的imageview ImageCache Android-Universal-Image-Loader 是一个图片缓存 NewQuickAction NewQuickAction 这是一个基于popuwindw的功能提示view,结合Listview有很好的效 ...
http://blog.csdn.net/cmdkmd/article/details/8991459

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多