Now in the mobile big trend driven, mobile payment, the rise of internet finance, is driving the Chinese Internet + rapid development, all the premise is to have a molded entity to support, this entity is the Internet services, now smartphones everywhere, 4G network is also in a rapid development stage, WiFi is everywhere, in a variety of convenient conditions, the mobile Internet homeopathy, once, our mobile phone is a call tool, call, send text messages, no other use, with the iphone iOS and Android and other only mobile phone system appears, There have been a large number of mobile application developers, some are developed in the form of a company, some are individual independent development of entrepreneurship, no matter what form, make mobile platform services more diversified, more and more personalized, in this competitive industry, how to create the same amount of time to maximize profits, This requires us to increase our productivity, so how can we improve our productivity? There is a word called the Battle of the enemy, weapons first, why so to say, because unarmed is very difficult to enemies and death, so any production need to rely on some tools, development is no exception, now the development tools too much, choose a familiar with their favorite can, with the tool is only the first step, then what is needed? The first example to say, now give you a function to develop, you may directly take the tool with the basic Java to develop, but you have not found that you have a lot of modules need to implement their own, and the specific effect has not elapsed time and wide range of testing, user experience and other aspects are unknown, so, In order to avoid these problems, a second increase in efficiency is introduced, which is the framework. Frameworks are packaged by others, and some of the tools that are available for existing needs can be implemented quickly to develop suitable, efficient Internet applications. Therefore, to sum up, to improve the efficiency of development altogether need a few prerequisites:
- Efficient development tools
- Android's development framework
- The accumulation and summary of practical experience
- Understanding and mastering the Android architecture
If you have mastered the above points, then you can already travel in the world of mobile Internet, as long as you have ideas, you can create miracles, because everything is possable, so let go of the embrace, to Android.
Below we enter today's topic, is what is thinkandroid?
Thinkandroid is a free, open-source, easy-to-use Android development framework that follows the Apache2 Open source protocol, and is designed to be easily and quickly developed for Android applications, including Android MVC, Easy SQLite orm, IOC module, the encapsulated Android httpclitent HTTP module, with the fast build file cache function, regardless of the format of the cache file, can be very easy to implement the cache, it also based on the file cache module implementation of the picture cache function, in the Android loaded images, It is easy to solve the problem of oom and the problem of loading picture dislocation. He also includes a number of utility classes that are often used in mobile phone development, such as log management, profile Management, Android Downloader module, network switching detection, and more (https://github.com/white-cat/ThinkAndroid)
Thinkandroid has one of the following modules, which I'll cover in detail later
-
MVC module: Implements the separation of views from the model.
-
IOC module: The IOC module in Android, fully annotated to enable UI binding, reading of resources in Res, and initialization of objects.
-
Database module: An ORM framework in Android that uses a thread pool to manipulate SQLite.
-
HTTP Module: Encapsulates HTTP data requests via HttpClient and supports asynchronous and synchronous loading.
-
Cache module: Through simple configuration and design can be very good cache, the cache can be arbitrarily configured
-
Picture 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 phenomenon.
-
Configurator module: Can be easily implemented pairing configuration, the current configuration file can support preference, the properties of the configuration to access.
-
Log Print module: Can be faster and easier to achieve log printing, support for the expansion of log printing, currently supports sdcard write local printing, and console printing
-
Download module: Can be easily implemented multi-threaded download, background download, breakpoint continuation, download control, such as Start, pause, delete and so on.
-
Network Status Detection module: When the network status changes, it is detected.
is not a very rich feature, is not a lot of things you have been exposed to, but every time seems to be repeating the same work, then with the thinkandroid you can not continue to do the same work.
Let's take a look at this in detail.
MVC for the people who have done web development is not unfamiliar, MVC is the model----------------------------------to reduce the coupling between modules, improve the expansion ability, and to satisfy our needs stably and efficiently. So Thinkandrod also borrowed from MVC's excellent architecture design idea, separating the architecture from the view and the controller. At the same time Thinkandroid will acticity between the jump is encapsulated, using the Doactivity () method to achieve, at the same time overloading many methods of our choice, if the feeling is not particularly good can also inherit after their own rewrite. At the same time, the direct page space injection I think also give us the actual development provides a lot of convenience, improve the reusability, there are a lot of features are no longer written today, 51 will be based on each module one by one, I hope you can more guidance, write wrong also hope that we give correct.
Andoroid high efficiency of the thinkandroid configuration detailed