The Learning Path of Android (iii) project start-up process and installation process

Source: Internet
Author: User

application Installation and startup process:
Installation: The first step: the Java compiler will compile this. java file into a. class file


Part II: The Android SDK provides a DX tool that escapes the. class file to a. dex file


Part III: Packaging operations, packaging. dex files and resource files, packaging them into a compressed file, and signing them. Finally packaged as an. apk file


Fourth: Call the ADB command: adb install c:/x.apk to the emulator

Specific process:. JAVA---->.class--. dx-->.dex---> Package signature--->.apk file


Start: The first step: Click on the App icon, which is equivalent to activating activity.

Part Two: Create the main thread, instantiate the activity in the main thread (the operating system will store information about the application near the activity, and then call the OnCreate method)


Part III: Through the Setcontentview (R.layout.activity_main) method to display the software interface to the window, this method is passed the ID of the software interface.

Process: Create a process---> create the main thread---instantiate the activity---in the main thread (the operating system will store information about the application near the activity and then call the OnCreate method)---> Display the resource interface via Setcontentview

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.