(Android packages activities into jar packages for third parties to call. The core of the code is the MResource class, which uses reflection to obtain resource IDs based on resource names (in fact, the system also has its own method getResources() to obtain resource IDs based on resource names getIdentifier(main_activity,layout,getPackageName()); The first parameter is the name of the resource, the second parameter is the type of the resource, such as layout, string, etc., and the third parameter is the package name).)