Six recommended Android Open source Framework introduction _android

Source: Internet
Author: User
Tags sqlite

1, Volley

Project Address Https://github.com/smanikandan14/Volley-demo
(1) JSON, image, etc. asynchronous download;
(2) Ordering of network requests (scheduling)
(3) Priority processing of network requests
(4) Cache
(5) Multi-level cancellation request
(6) Linkage to activity and lifecycle (all network requests are canceled at the end of the activity)

2, Android-async-http

Project Address: Https://github.com/loopj/android-async-http
Document Introduction: http://loopj.com/android-async-http/
(1) Processing request results in anonymous callbacks
(2) HTTP requests outside of the UI thread
(3) File breakpoint upload
(4) Intelligent retry
(5) Default gzip compression
(6) Support parsing into JSON format
(7) The cookies can be persisted to sharedpreferences

3, afinal framework

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) Annotation module: The IOC framework in Android, full annotation allows for UI binding and event binding. No need for Findviewbyid and Setclicklistener.
  (3) network module: Through the httpclient to encapsulate HTTP data request, support AJAX mode loading, support download, upload file function.
  (4) Picture caching module: When loading bitmap through Finalbitmap,imageview, it is not necessary to consider the phenomenon of image dislocation appearing during bitmap loading oom and Android container sliding quickly.
             Finalbitmap can configure line Cheng number of threads, cache size, cache path, Load display animation, and so on. Finalbitmap memory management Using the LRU algorithm,
             No weak references are used (android2.3 after Google has not recommended using weak references, android2.3 to forcibly recycle soft and weak references, details of the Android official documentation),
              better manage bitmap memory. Finalbitmap can customize the downloader to extend other protocols to display network images, such as FTP. You can also customize the bitmap display,
             Play the animation when ImageView displays the picture (by default, the gradient animation is displayed).

4. Xutils Frame

Project Address: Https://github.com/wyouflf/xUtils
There are four main modules:
(1) Database module: Android in the ORM Framework, a line of code can be added to check;
Support transactions, closed by default;
You can customize the table name, column name, foreign key, uniqueness constraint, NOT NULL constraint, check constraint, etc. (Please note the table name and column name when you need to be confused);
Support binding foreign key, save the entity when the foreign key associated entity automatically save or update;
Automatic loading of foreign key associated entities, support delay loading;
Support chain expression query, more intuitive query semantics, refer to the following introduction or examples in Sample.
(2) Annotation module: The IOC framework in Android, full annotation mode can be UI, resources and event binding;
The new event binding method, which can still work properly after being confused with the obfuscation tool;
The 20 common event bindings are currently supported, see Viewcommoneventlistener Classes and Package com.lidroid.xutils.view.annotation.event.
(3) Network module: Support synchronous, asynchronous mode 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 supports 301/302 redirects to support setting whether to rename downloaded files according to Content-disposition;
Requests that return text content (by default only get requests are enabled) support caching, which sets the default expiration time and the expiration time for the current request.
(4) Picture caching module: Load bitmap without considering the bitmap loading process oom and the Android container when the rapid sliding of the picture dislocation phenomenon;
Support to load network pictures and local pictures;
Memory management uses LRU algorithm to better manage bitmap memory;
Configurable line Cheng number of threads, cache size, cache path, load display animation, etc...

5, thinkandroid

Project address: Https://github.com/white-cat/ThinkAndroid
includes the following modules:
  (1)   MVC module: Realize the separation of view and model.
  (2)   IOC module: The IOC module in Android, full annotation allows for 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 through httpclient, and supports asynchronous and synchronous loading.
  (5)   Caching module: Caching can be done well with simple configuration and Design
  (6)   Picture Caching module: ImageView loading pictures without considering the image loading process oom and the Android container quickly slide when the picture dislocation and other phenomena.
  (7)   Configurator module: You can perform a simple pairing configuration, and the current configuration file can support preference, properties to access the configuration.
  (8)   Log printing module: It is easy to implement log printing, support the expansion of log printing, currently supports sdcard write local printing, and console printing
  (9)   Download module: Can be simple to achieve multithreading download, background download, breakpoint continued transmission, to control the download, such as Start, pause, delete and so on.
  (10) Network State detection module: When the network state changes, check it out

6, Loonandroid

Project Address: Https://github.com/gdpancheng/LoonAndroid
There are mainly the following modules:
(1) Automatic injection framework (only need to inherit application within the frame)
(2) Picture loading frame (multiple cache, automatic recycle, maximum guarantee of memory security)
(3) Network request Module (inherited basically all HTTP requests now)
(4) Eventbus (integrated with an open source framework)
(5) Validation Framework (integrated open source framework)
(6) JSON parsing (supports parsing into collections or objects)
(7) database (do not know who wrote the forgotten)
(8) Multi-threaded breakpoint Download (automatically determine whether to support multiple threads, to determine whether it is redirected)
(9) Automatic Update module
(10) A series of tool classes

Volley, which has been studied in the 13, has a very good expansibility, and the style of personal preference. Other such as Android-async-http, Afinal also quite good.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.