Introduction to Android-----Engineering Files Directory

Source: Internet
Author: User

1, SRC directory: The main is to complete the writing of Java code

2. Assets Directory: Resource Directory

3. Res directory: Existing pictures, layout files and strings, menu files, etc.

4. Bin directory: Output folder, such as build apk file

5. Configuration of Project.Properties Project properties file

6, Gen directory: The system automatically generated source code directory

7, R.java file is the system automatically generated files (very important), by default attr drawable layout string Four static internal classes,

Each class corresponds to a resource. If we add a picture to the project, a unique piece of data will be added to the drawable inner class, and if deleted, it will be deleted automatically.

8, Androidmanifest.xml is the necessary files in each Android program, it is located under the project with the donkey described the package exposed ideas, the following we have a description of the manifest file properties

<?xml version= "1.0" encoding= "Utf-8"?>
<!--
The package represents the primary inclusion of the entire Java application and is a default program name
Android:versioncode= "1" indicates that the project generated by the APK version number 1 began to upgrade,
Android:versionname= "1.0" represents the first name of a version
android:installlocation= "Auto" Automatically finds the default properties of the installed place, ROM or sdcard card
Internalonly can only be installed on ROM (memory)
Preferexternal directly onto the SDcard card (for large hand tours)
-

<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Laotan.test"
Android:versioncode= "1"
Android:versionname= "1.0"
android:installlocation= "Auto"
>

<!--represents the authorization to add a user: such as authorized access to network-
&LT;USES-SDK android:minsdkversion= "Ten"/>


<!--
android:icon= "@drawable/ic_launcher" represents a picture (logo) of the application
Android:label= "@string/app_name" denotes a textual description of the application project
-
<application
android:icon= "@drawable/ic_launcher"
Android:label= "@string/app_name" >

<!--
Intent-filter Intent Filter: Some actions and actions to filter the user
Android:name= "Android.intent.action.MAIN" represents the main program name for the entire application amount
Android.intent.action.MAIN indicates that the current program is an entry procedure for the entire project.

Category Android:name Indicates whether the application is displayed in the program list
-
<activity
Android:label= "@string/app_name"
Android:name= ". Myapplicationactivity ">
<intent-filter >
<action android:name= "Android.intent.action.MAIN"/>

<category android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>

</manifest>

To be continued .....

Introduction to Android-----Engineering Files Directory

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.