文章首发:安卓技术原创apkdoc

  

1. 什么是Volley

在这之前,我们在程序中需要和网络通信的时候,大体使用的东西莫过于AsyncTaskLoader,HttpURLConnection,AsyncTask,HTTPClient(Apache)等,今年的Google I/O 2013上,Volley发布了。Volley是Android平台上的网络通信库,能使网络通信更快,更简单,更健壮。
这是Volley名称的由来: a burst or emission of many things or a large amount at once

Volley主页https://android.googlesource.com/platform/frameworks/volley

http://www.youtube.com/watch?v=yhv8l9F44qo&feature=player_embedded

来源:

http://blog.csdn.net/t12x3456/article/details/9221611

2.Afinal是一个android的ioc,orm框架,内置了四大模块功能:FinalAcitivity,FinalBitmap,FinalDb,FinalHttp。

通过finalActivity,我们可以通过注解的方式进行绑定ui和事件。通过finalBitmap,我们可以方便的加载bitmap图片,而无需考虑oom等问题
https://github.com/yangfuhai/afinal
介绍
http://www.cnblogs.com/taoweiji/p/3174722.html

http://code.google.com/p/afinal/

其中volly下载

git clone https://android.googlesource.com/platform/frameworks/volley

按照上面的方法,下载时,可能报连接超时,这是因为,android源码,默认下载是用匿名方式的,google为了某种性能和管理目的,做了限制,像一 般的,动态公网IP就 可能下载不了。为此,google提供了认证方式下载。

Using authentication

By default, access to the Android source code is anonymous. To protect the servers against excessive usage, each IP address is associated with a quota.

When sharing an IP address with other users (e.g. when accessing the source repositories from beyond a NAT firewall), the quotas can trigger even for regular usage patterns (e.g. if many users sync new clients from the same IP address within a short period).

In that case, it is possible to use authenticated access, which then uses a separate quota for each user, regardless of the IP address.

The first step is to create a password fromthe password generatorand to save it in~/.netrcaccording to the instructions on that page.

The second step is to force authenticated access, by using the following manifest URI:https://android.googlesource.com/a/platform/frameworks/volley. Notice how the/a/directory prefix triggers mandatory authentication. You can convert an existing client to use mandatory authentication with the following command:

在windows xp中配置环境变量

android常用开源库volly下载_第1张图片

配置_netrc文件,内容为在google生成的账号与密码

android常用开源库volly下载_第2张图片

下载

android常用开源库volly下载_第3张图片

更多相关文章

  1. 【Android】 _UI设计_图片滑动样式
  2. android --启动画面制做 png图片-->initlogo.rle
  3. android图片格式
  4. Android拍照选取图片
  5. Android 图片圆角的设置
  6. Android - 小功能 - Android系统详解之获取图片和视频的缩略图
  7. Android文字垂直滚动、纵向走马灯的几种实现方式

随机推荐

  1. linux 编译 android-apk 安装到window下
  2. Android(安卓)Studio插件推荐-GsonFormat
  3. Android(安卓)让你的SeekBar 也支持长按
  4. Android中基于Tesseract OCR的文字识别应
  5. Android(安卓)Studio最常用快捷键
  6. Android快速开发框架dyh详解(一)---初识d
  7. geekband android #5 第十周分享
  8. 自己编写的android站长工具
  9. 【实践驱动开发3-004】TI WL1835MODCOM8
  10. Progressbar的使用