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