The Learning Path of Android (ii) Introduction to the usage scenarios and documentation of native files in the project

Source: Internet
Author: User

1.src file: Java source Code Storage directory

2.Gen File: Automatically generate all files automatically generated by Android development tools, the most important in the directory is the R.java file, which is automatically generated by the Android development tool. The Android development tool will automatically update the revision R.java file according to the resources you hold the Res directory, because the R.java file is automatically generated by the development tool, so we should avoid manually modifying the R.java. R.java file in the application of the role of the dictionary, it contains a variety of resource IDs, through the R.java, the application can be very convenient to find the corresponding resources,
2.1r.java: The ID used to register various resources. You can refer to these resources by ID
3.Res file: Resource directory. Used to store all kinds of resources used by the application, such as: Pictures, documents, software use of the text AH.
3.1drawable: A picture resource used to store different screen resolutions.
3.2LayoutFiles: Resource files used to store the software interface

3.3valueFiles: Used to store data used by the app, such as size, string
4.AssetsFiles: Resource directory. In addition to providing/res directory storage resources files, in the/assets directory can also store resource files, pictures or data. However, in the/assets directory, the resource file will no longer be R.java automatically generated ID, so read the/assets directory file must specify the path of the file, such as: file://android_asset/XXX.3gp
5.Androidmanifest.xmlProject manifest file
This file lists the features that the application provides, and the various components you develop later (Activity,contentprovider, Broadcastreceiver, Service) need to be configured in that file. If your app uses a built-in app (such as phone service, Internet service, SMS, GPS service, etc.), you'll also want to declare the use rights in the file
6.default.properitiesProject environment information, generally do not need to modify this file

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.