Years of Experience in Android architecture: compilation, installation, and running of Android programs | Android devcamp | July 27 Beijing

Source: Internet
Author: User

Wang Wenjun, chief architect of technology miui, confirmed the topic of his speech: compilation, installation and operation of Android programs.

Lecturer profile: Wang Wenjun, Master of Science and Technology University of China, formerly IBM system engineer, is now the chief architect of technology miui and author of The Open Source C compiler project UCC.

Topic Introduction: compile, install, and run Android programs. This article explores the programming abstraction provided by the Android system from the programmer's point of view and discusses the Android system structure from the entire life cycle of the program.




Q: What is the topic keyword shared by this technology?

# Android architecture #



Q: Why is this topic selected?

Wang Wenjun is responsible for miui source code structure at technology, and is responsible for miui model adaptation. In the past three years, from Android 2.3 to Android 4.0, Wang Wenjun has been familiar with almost all models (2.3 is compatible with more than 30 models, and 4.0 is roughly compatible with more than 20 models ). For model adaptation, you must understand the structure of the entire android system. It is practice to accumulate a lot of knowledge about the Android system architecture during this period. This speech summarizes these knowledge and practices.


Q: What will be involved in the keynote speech? What problems are solved?

Wang Wenjun understands the Android system structure from the perspective of program development. For example, how does Android run on Linux? What is the difference between Android and other common programming? Where is the android program entry point? And so on.


Introduce the macro architecture of the Android system from the process of program compilation, installation and running.

-Compilation: The resource compiler, how to package resources and code together.

-Installation: how to manage these packages in Android.

-Run: the entry point of the program.


Q: What is the relationship between compilation, installation, and running?

Wang Wenjun: In fact, I want to analyze this process from the programmer's perspective. For example, if you develop a program, you must first write a program, then compile it, And then compile and install it on the Android system to run it. From this entire process, let's talk about how the Android system works. This entire process is used to study the Android system structure.

Android compilation is not the same as normal compilation. Although we all know that android is based on Java, it is different from the Java program on the ordinary desktop. It has two types of Compilation: code and resource. He has this concept of code and resource separation. During compilation, I want to talk about how resource compilers package resources and code together. The installation involves how the entire android system manages these applications and how to manage these packages. The final operation is to show how Android hides the organizational components of a program, encapsulates it, and finally enables the program to run through the encapsulation mechanism. I mainly want to talk about the entire android architecture through these three points. The content is wonderful.

If you can understand how a system works, it is helpful for you to write things. In particular, a general Android programmer may take some examples to write. However, he does not understand why these mechanisms are written in this way. This knowledge is helpful from within our mumi R & D team.

Q: What kind of structure is Android based on your understanding?

Wang Wenjun: first, Android is based on the Linux kernel. It has a Dalvik Virtual Machine on Linux. Next, we call it the JNI layer, that is, it is a channel for Java virtual machine, C, and Linux communications. Next, we generally say that the Android system actually refers to this layer. It has some system services, such as program installation package management, installation and the entire program running. Because Android encapsulates users and programs are not the concept of programs. It encapsulates some concepts based on the processes provided by Linux. Android development is not just Java code. From this perspective, when do developers need to work with JNI and C when to write Android programs?
Code. Understanding the structure of Android is helpful for everyone's better Android development practices.



Q: Why do I need to know this process for program development? What is the value to developers?

There is a macro understanding of the entire system. This will help developers better understand the structure and performance, and avoid thinking limitations in program development.


Q: How does R & D team share internal technologies?


Internal sharing mechanism: once every two weeks, miui has many projects, mainly including system group, distribution group (phone number, contact person, SMS), mi skin, and multimedia group. encourages R & D teams to share their experiences. Each speaker will prepare a simple PPT to discuss and solve the problem during the sharing.


The significance of the Sharing Mechanism: To improve everyone's understanding of the product; to help new employees; some topics can inspire good product ideas!


Q: What are your expectations for Android Dev camp in July 28?


-By participating in the activity, you can find out where your focus is? What are you doing?

-Networking and communication platform. It is rare for practitioners of so many mobile development technologies to get together.


Interview: http://blog.csdn.net/shiningxyy/article/details/7757162




Previously, at cmdn club, Dong Hongguang, an engineer of technology, shared the topic "how to skin change and how to implement the miui style in the Android system", which was well received by the participants.

Miui is a deep Android-based system developed by . One of the important improvements and highlights is that the system supports theme skin replacement. This speech will focus on this function, in-depth analysis and discussion of the design concept of the miui theme function, the overall structure and implementation technical details, give developers a simple reference, hope to play a role.

News: http://mobile.csdn.net/a/20120301/312643_2.html


About: IOS devcamp July 27 | Android devcamp July 28 | Beijing | Crowne Plaza New Yunnan

This is a real meeting for mobile developers. Participants are mainly engaged in mobile development practitioners who exchange, learn, improve, and answer questions, you will rarely see investors, market personnel, celebrities, and people who don't know why to participate in the "Soy Sauce. Participants only have experienced developers and engineers like you.


[Features ]:

-A real IOS/Android Development Technology Conference.

-A platform for enterprises and teams to exchange and learn mobile development technology practices.

-Dev to Dev, from developers and service developers. The course content does not cover any commercial promotion purposes.

-The course covers important aspects of the IOS/Android knowledge system and focuses on the development practices of typical mobile products.

-The domestic senior mobile development expert review team checks all the courses to ensure that all the courses are "no score" and "dry goods ".

-All courses are taught by senior developers. They may not be celebrities, but must be "Technical Experts"

-All participants are mobile developers, engineers and their development team members.


More lecturers and topics are being updated! Please note:

Official Website: http://devcamp.csdn.net/

Blog: http://blog.csdn.net/shiningxyy

Weibo: http://weibo.com/cmdnclub

Forum: http://cmdn.net/






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.