New projects for Android
First step: Right click on the left, appear new-->android project--> fill in three name
Step two: The new first class file automatically inherits a parent class and then overrides the parent class's method
Step three: R.java is relative to the project name
Android Project Structure
Src:java the folder where the source code resides
Gen: The folder where the R.java is automatically generated
Android Developer Kit: Android.jar
Res: Resource folder with 3 types of
drawable: Picture Resources
Layout: The folder where the layouts files are located
Values: The folder where the string resource resides
Androidmanif.xml: Project List
Develop activity steps
First step: Write a class to inherit activity
Step two: Overriding the OnCreate method
Step three: Register the activity in the master configuration file
<activity android:name= ". Class name"
Android:label= "@string/app_name" >
<intent-filter>
<!--app's population--
<action android:name= "Android.intent.action.MAIN"/>
<!--desktop display--
<category android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Android new project and activity steps