When looking at the Android code running mechanism, often encounter some less understanding of the words, here I encountered some of the words and understanding:
1, Android system, as a whole, it belongs to the message-driven type, simply said that the system application of the various components are relying on the message to interact, the system will have a main thread loop execution looper in the message queue.
2, compile: Only after the successful compilation can generate executable code, simple understanding is that the grammar to meet the requirements of the Android system, such as mathematical algorithms.
3, Runtime: A simple understanding is when the code executes to that line of code, (such as Findviewbyid in the Android system, as long as there is a corresponding ID will not be an error, because it is re-run to check if the ID exists). Runtime checks in Android, which is what the runtime bindings mean.
4, Android components and processes: Although the Android components run in the process, but the process is killed, the components can still survive, which is sometimes in the use of 360 security guard to view the application will appear 0 process run, 1 service is running the strange image. Because Android is designed to improve the responsiveness of the app, Android components can be independent of the process (it has some column Manageer classes to control).
5, the Android system is based on Linux2.6, but does not belong to the branch of the Linux system, so it is not open source development.
6, compile the XML file will be compiled into 2 format, generate a resource symbol for the subsequent generation R.java files, each ID is 4 bits 16 binary number, the high byte bit represents the package name, the second high byte represents the type (String,int,view etc.), the latter two bits represents the specific ID;
This article is from the "Faith Connaught Group Technology Center" blog, please be sure to keep this source http://sinoteam.blog.51cto.com/9115640/1562606
Android Common Concept Understanding