Introduction to Android System framework
SRC Directory: Main completion Java code writing
Assets Directory: Resource Directory
Res directory: Store pictures, layout files, strings, menus, and other files
Bin directory: Output folder, such as build apk file
Project.Properties: Project Properties File configuration
Gen Directory: The system automatically generated source code directory
R.java file: The system automatically generated files, the default is attr, drawable, layout, String4 static internal classes, each class corresponding to a resource
Androidmanifest.xml: Describes the components exposed in the package (Activities,service, etc.), their respective implementation classes, various data and boot locations that can be processed, in addition to declaring the activies in the program, Contentproviders, Service, Intent receives, can also specify permission and instrumentation (security control and testing)
The Res resource file contains:
Drawable File: Store project picture information, default PNG format
Layout files: Storing project layout files,. xml file formats
Values file: How to take value
String.xml Store custom strings and values (very important) getresource (). getString (ID) or getresource (). GetText (ID)
Array.xml Storage Array getresource (). Getstringarray (ID)
Color.xml Store Color String value getresource (). getdrawable (ID) or getresource (). GetColor (ID)
Dimens.xml Storage size value getresource (). Getdimension (ID)
Styles.xml definition style does not need to be evaluated
Androidmanifest.xml main syntax Definitions:
<?xml version= "1.0" encoding= "Utf-8"?>
<!--package= "Com.jc.helloworld" specifies the primary package name of the Java application
Android:versioncode= "1" the major version number of the project
Android:versionname= a name for the "1.0" version
android:installlocation= "Auto" app install local auto Select Internalonly Install to ORM preferexternal install to SD card--
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Com.jc.helloworld"
Android:versioncode= "1"
Android:versionname= "1.0"
android:installlocation= "Auto" >
<!--android:minsdkversion= "8" specifies the SDK minimum adaptation version
android:targetsdkversion= "18" Specifies SDK Standard Version---
<uses-sdk
Android:minsdkversion= "8"
Android:targetsdkversion= "/>"
<!--android:allowbackup= "true"
android:icon= "@drawable/ic_launcher" specifies the Loge picture of the app
Android:label= "@string/app_name" Application Engineering text description
Android:theme= the body style of the "@style/apptheme" app--
<application
Android:allowbackup= "true"
android:icon= "@drawable/ic_launcher"
Android:label= "@string/app_name"
Android:theme= "@style/apptheme" >
<!--android:name= "com.jc.helloworld.HelloActivity" specifies the application's main program name
Android:label= "@string/app_name"
<intent-filter> Intent Filter filters some actions and actions
Android.intent.action.MAIN indicates that the current program is a project entry procedure
Android.intent.category.LAUNCHER Indicates whether the application is displayed in the Programs list-
<activity
Android:name= "Com.jc.helloworld.HelloActivity"
Android:label= "@string/app_name" >
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>
<category android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
2. Introduction of Android System framework