Android Application Architecture

Source: Internet
Author: User
When you create an android project, the tool automatically creates many folders, the following explains the functions of these folders: src/Java original code storage directory GEN/Automatic Generation directory Gen directory stores all files automatically generated by Android development tools. The most important part in the directory is the R. Java file. This file is automatically generated by the android development tool. The android development tool automatically updates and modifies the R. Java File Based on the XML interface files, icons, and constants in the res directory. Because the R. Java file is automatically generated by the development tool, we should avoid manual modification to R. java. R. Java plays a dictionary role in the application. It contains the IDs of various resources such as interfaces, icons, and constants. Through R. Java, the application can easily find the corresponding resources. In addition, the compiler checks the R. whether the resources in the Java list are used, and those that are not used are not compiled into the software. This can reduce the space occupied by applications on mobile phones. The res/Resource Directory stores various resources used by applications, such as XML interface files, images, and data. For details, see the remarks column below the PPT. Androidmanifest. the XML function list file lists the functions provided by the application. In this file, you can specify services used by applications (such as telephone services, Internet services, SMS services, and GPS services ). In addition, when you add an activity, you also need to configure it in the file. The activity can be called only after the activity is configured. Default. properties project environment information, which generally does not need to be modified

Related Article

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: 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.