Android Development Framework Summary

Source: Internet
Author: User
Tags sqlite database

Android Development Framework Summary

Time flies really fast, blink of an eye will enter into 16 August, now should be dog period, a word "hot". The front-end time to organize a "JS front-end Frame summary", and then take the time to learn a bit of Android development, in MU class online learning a lot of video, feel the harvest is very big, some things, have to insist, more know something is not a bad thing. Sometimes I also take time to go to the National Library to see, the types of books are not limited, catch what to see.

Today as an Android beginner's identity I also try to organize some of the Android development commonly used in some of the framework, when it is learning results, in fact, mostly from the Internet search, and then do a summary. So let's get started:

  First , androidannotations

Description: Androidannotations is an open source framework that allows you to develop your Android quickly, allowing you to focus on what really matters. Making the code more streamlined makes the project easier to maintain, and its goal is "Fast Android development.easy maintainance".

features: compared to native Android development, really can make you less a lot of code, its homepage also gives a simple example, through the example can see the code is almost half of the previous writing

Features: (1). Use Dependency Injection (Dependency injection) #本博接来下几篇的文章将要介绍的开源组件都使用DI, unfamiliar to understand inversion of Control (IoC)

(2). Simplified threading Models (simplified threading model)

(3). Event binding

(4). REST Client

(5). No magic [Do not know why this is called, literal translation is: no magic, it means: androidannotations at compile time will produce a subclass (next you will understand), you look at this subclass, you can see how it works]

Official website:http://androidannotations.org/

code Address:Https://github.com/excilys/androidannotations/wiki

Second, volley

  Description: Volley is Google's launch of the Android Asynchronous network request framework and picture loading framework.

  Features: (1). Strong extensibility. Most of the volley are based on the interface design, which is highly configurable.
(2). To a certain extent in line with the HTTP specification, including the return Responsecode (2xx, 3xx, 4xx, 5xx) processing, request header processing, caching mechanism support. and supports retry and priority definitions.
(3). The default Android2.3 and above based on the httpurlconnection,2.3 below based on the HttpClient implementation, the difference between the merits and demerits in 4.2.1 volley specifically described.
(4). Provides a simple image loading tool.

Iii. framework of Afinal

  Description:afinal is an open-source Android ORM and IOC application Development framework that is characterized by its small size and flexibility and low code intrusion. In Android app development, through the afinal IOC framework, such as UI bindings, event bindings, annotations can be automatically bound. With the Afinal ORM Framework, no configuration information is required, and a single line of code can be used to add and check the SQLite database of Android. At the same time, afinal embedded in the finalhttp and other easy-to-use tools, can easily operate on HTTP requests.

  Composition: (1). Finalhttp: Used to request HTTP data, direct AJAX request, file upload, breakpoint continuation download file, etc.
(2). Finalbitmap: Used to display bitmap pictures without regard to issues such as thread concurrency and oom.
(3). Finalactivity: It is possible to bind controls and events in a fully annotated manner without writing code.
(4). Finaldb:android in the ORM framework of SQLite, a line of code to fix additions and deletions.

Features: Design simple Small Flexible ORM 0 configuration, but can be configured to achieve more powerful function database query support Dbmodel through flexible annotation configuration, can easily carry out a variety of complex query Android UI and event binding completely through the way of annotations, without writing a line of code, HTTP requests Support AJAX-style requests, which are small in size (less than 100KB) and do not rely on third-party jar packages.

Iv. framework of Xutils

  Description: Xutils contains a lot of useful Android tools. xutils from the afinal framework, the afinal is heavily reconstructed, allowing the xutils to support large file uploads, more comprehensive HTTP request protocol support, more flexible ORM, more event annotations support, and no confusion. Also be aware thatXuitls is the lowest compatible Android 2.2 (API Level 8)

  Composition: (1). Viewutils: Just need a note, such as @viewinject, @OnClick, you can easily get rid of the small white Code, greatly on a grade.

(2). Httputils: Supported HTTP Seven request mode, very convenient to meet the needs of your interface request. It also supports uploading and downloading large files, as well as synchronizing asynchronous requests.

(3). Bitmaputils: Has your program been forced to close because of oom? Are you having a headache for the internet picture? With the components, you will permanently get rid of the previous problem.

(4). Dbutils: An easy-to-use and excellent ORM framework, really who knows, directly and easily store a variety of objects to the SQLite database, but also can be very convenient to carry out a variety of conditions query, even paged query, as well as the data in the table update Delete operations, real implementation. A single line of code can be added and censored. It can also support transactions with annotations by customizing table names, column names, foreign keys, uniqueness constraints, NOT NULL constraints, check constraints, and so on.

V. Universalimageloader Framework

  Description: We certainly encountered the need to load images when developing the app, especially when the list needs to load a lot of images, then we will have to download images and display. However, due to the memory and other aspects of the problem will encounter some problems, such as: List loading pictures, image confusion distribution.

  Features: (1). Multi-threaded download pictures, images can be from the network, file system, project folder assets and drawable medium

(2). Support arbitrary configuration imageloader, such as thread pool, picture downloader, memory cache policy, hard disk cache policy, picture display options and some other configurations

(3). Memory cache for image support, file system cache or SD card cache

(4). Support for monitoring the image download process

(5). Bitmap is cropped according to the size of the control (ImageView), reducing bitmap memory consumption

(6). Better control of the loading process of the picture, such as pause picture loading, restart loading pictures, generally used in the Listview,gridview, the slide process to pause loading pictures, stop sliding to load the picture

(7). Provides loading of pictures on slower networks

Summary: In fact, did a return of the entry to explain the Porter, will continue to update. All right, here I am, Jerry Hundred.

Android Development Framework Summary

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.