1, Catalogue
Gen: Put R.java, save ID, automatically maintained by development tools
Res: Put the resource file, the resources will be added automatically in R.java, and give an ID
Androidmainfest.xml: Configuration of the application
Inside some syntax such as: @string/app_name, can be understood as: @ for R.java file, inner class string inside the constant app_name
2, the compilation process
. java--->.class---->dx-->.dex---> Package signature--->.apk
ADB install c:\xx.apk
3, startup process
Create a process---> create the main thread--instantiate activity (via reflection) in the main thread--->
(The operating system stores information about the application (context) in the activity and then calls OnCreate ())
Display units used by the 4,android
PX (pixel) pixels
Dip or DP (device independent pixel) devices independent pixels
SP (scaled pixel) proportional pixels
Main processing font size, according to the system font adaptive
Note: For use with different resolutions, different pixel densities, dip is recommended, text uses SP
Getting Started with Android