1, Volley
Project Address Https://github.com/smanikandan14/Volley-demo
(1) Asynchronous download of JSON, image, etc.;
(2) Ordering of network requests (scheduling)
(3) Priority processing of network requests
(4) Cache
(5) Multi-level cancellation request
(6) Linkage with activity and life cycle (simultaneous cancellation of all network requests at end of activity)
2, Android-async-http
Project Address: Https://github.com/loopj/android-async-http
Document Description: http://loopj.com/android-async-http/
(1) Processing request results in an anonymous callback
(2) Making HTTP requests outside the UI thread
(3) File breakpoint upload
(4) Smart retry
(5) Default gzip compression
(6) Support parsing into JSON format
(7) Cookies can be persisted to sharedpreferences
3. Afinal Frame
Project Address: https://github.com/yangfuhai/afinal
There are four main modules:
(1) Database module: An ORM framework in Android that uses a thread pool to manipulate SQLite.
(2) Note module: The IOC framework in Android, which can be used for UI binding and event binding in a fully annotated manner. No need for Findviewbyid and Setclicklistener.
(3) Network module: encapsulation HTTP data request through HttpClient, support Ajax mode loading, support downloading and uploading file function.
(4) Picture cache module: When loading bitmap through Finalbitmap,imageview, there is no need to consider the phenomenon of image dislocation when the Oom and Android containers appear during the bitmap loading process.
Finalbitmap can configure the number of thread preempted threads, cache size, cache path, load display animation, etc. Finalbitmap's memory management uses the LRU algorithm,
Not using weak references (after android2.3, Google has not recommended the use of weak references, android2.3 after the forced recovery of soft and weak references, details of the official Android document),
Better management of bitmap memory. Finalbitmap can customize the downloader to extend other protocols to display network pictures, such as FTP. You can also customize the bitmap display,
Play animations when ImageView display pictures (the default is the gradient animation display).
4. Xutils Frame
Project Address: Https://github.com/wyouflf/xUtils
There are four main modules:
(1) Database module: The ORM Framework in Android, a line of code can be used to increase the deletion of the search;
Support transactions, closed by default;
Annotations can be used to customize table names, column names, foreign keys, uniqueness constraints, NOT NULL constraints, check constraints, etc. (Please note the table and column names when confusion is required);
Support for binding foreign keys, saving entities when the foreign key associated entities are automatically saved or updated;
Automatic loading of foreign key associated entities, support delay loading;
Support chain expression query, more intuitive query semantics, refer to the following introduction or sample examples.
(2) Note module: The IOC framework in Android, full annotation can be UI, resource and event binding;
New event binding mode, the use of obfuscation tools can still work properly;
Currently supports 20 commonly used event bindings, see Viewcommoneventlistener Class and package com.lidroid.xutils.view.annotation.event.
(3) Network module: Support synchronous, asynchronous way of request;
Support large file upload, upload large files will not oom;
Support Get,post,put,move,copy,delete,head,options,trace,connect request;
Download support 301/302 Redirect, support setting whether to rename downloaded files according to Content-disposition;
A request to return text content (by default, only get requests enabled) supports caching, setting the default expiration time and the expiration time for the current request.
(4) Picture cache module: When loading the bitmap, there is no need to consider the phenomenon of the image dislocation when the Oom and the Android container move quickly during the bitmap loading process.
Support to load network pictures and local images;
The memory management uses the LRU algorithm, better manages the bitmap memory;
Configurable line preempted thread count, cache size, cache path, load display animation, etc...
5, Thinkandroid
Project Address: Https://github.com/white-cat/ThinkAndroid
The main modules are:
(1) MVC module: Implementing the separation of views from the model.
(2) IOC module: The IOC module in Android, fully annotated to enable UI binding, reading of resources in Res, and initialization of objects.
(3) Database module: An ORM framework in Android that uses a thread pool to manipulate SQLite.
(4) HTTP module: Encapsulates HTTP data requests via HttpClient and supports asynchronous and synchronous loading.
(5) Cache module: Through simple configuration and design can be very good cache, the cache can be arbitrarily configured
(6) Image cache module: ImageView loading pictures without taking into account the image during the loading process of oom and the Android container rapid sliding when the picture dislocation and other phenomena.
(7) Configurator module: can be easy to implement pairing configuration operation, the current configuration file can support preference, the properties of the configuration to access.
(8) Log printing module: Can be faster and easy to achieve log printing, support for the expansion of log printing, currently supports sdcard write local printing, and console printing
(9) Download module: Can be easily implemented multi-threaded download, background download, breakpoint continuation, download control, such as Start, pause, delete and so on.
(10) Network status Detection module: When the network status changes, it is checked
6, loonandroid
project address: https://github.com/gdpancheng/ Loonandroid
has the following modules:
(1) Auto-inject framework (only application within the framework can be inherited)
(2) Picture loading framework (multi-cache, auto-recycle, Maximum memory security)
(3) Network request module (inherits basically all HTTP requests now)
(4) Eventbus (integration of an open source framework)
(5) Validation Framework (integrated open source framework)
(6) JSON parsing (parsing to a collection or object)
(7) Database (I don't know who wrote it forgot)
(8) Multi-threaded breakpoint Download (automatically determines if multi-threading is supported, determines whether it is redirected)
(9) Auto update module
(10) A series of tool classes
One of the volley, 13 has been studied, extensibility is very good, personal more like the style. Other such as Android-async-http, afinal is also quite good.