In recent years, Android has started to become popular, and very many projects have started to involve this part of the content, so learning Android is also very meaningful.
Learn whatLearn what Android should learn and very many people have different insights. The general program apes may just be learning Android UI controls and Android API usage. High-level program apes may look at the Android framework and the Android implementation principle. In relation to both, the top program apes will gain an in-depth understanding of the architecture and design ideas of Android and transform and refine these architectures and design ideas to other applications. What would you do?
Android Hierarchical ArchitectureNow that you're learning Android, start with the most attractive architecture and design ideas. First let's take a look at the Android architecture diagram, as seen below:
From the above figure, we can see that this Android architecture from top to bottom is divided into four tiers, each of which is the application layer, the application framework layer, the System execution Library layer, and the Linux kernel layer.
Application LayerThe application layer consists primarily of applications that can be easily understood as a variety of software and applications that we can see on mobile devices. These software and applications can be replaced and updated by other applications developed by program developers, which is more flexible and personalized than the early-curing mobile software built into the system.
Application Framework LayerThe application framework layer is primarily for Android app developers, which provides a lot of reusable components for Android developers to develop applications, and at the same time, it agrees with developers to replace these builds. With this layer, developers can develop rich applications, and developers develop applications that are fully capable of using the features developed by other applications.
System Execution LayerFrom what you see, the system execution layer can be divided into two parts: part of the Lib library provided by Android, and part of Android's execution.
The so-called Lib library, in fact, is the support of the framework layer of the application, and all of its functions are provided externally through the application framework layer, and the Linux kernel and the application framework layer are connected.
Android's execution is similar to Java's execution-time mechanism, which can be divided into the API Core library and a JVM-like virtual machine dalvk. This section is able to refer to the JVM for understanding and learning, which is not discussed here.
Linux kernel layerAndroid is essentially a package that is built on top of Linux. By using Linux kernel as the abstraction layer between hardware and software, and it provides the features of security, memory management, process management, network stack, drive model and other services, Andorid finally realizes its most basic core architecture and design.
Through the above analysis, we can clearly realize that the core of Android design is the layering. But how to layer this is what we want to focus on, so, learning Android is not to make an application, but to learn from Android to analyze its architecture, learn, intact, apply and create value.
Learning at last not to learn what, but want to learn what, life is not what you do, but what you want to do.
The same Android, not the same learning