Android Common Concept Understanding

Source: Internet
Author: User

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

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.