Create an Android emulator
Click on the shape of your phone (Android virtual Device Manager) to create a new Android emulator
650) this.width=650; "style=" width:660px;height:353px; "src=" http://s3.51cto.com/wyfs02/M01/5B/FA/ Wkiom1uyfkkh3j20aafmne18r2i747.gif "title=" 2015-03-29_231105.gif "border=" 0 "height=" 353 "hspace=" 0 "vspace=" 0 " Width= "660" alt= "Wkiom1uyfkkh3j20aafmne18r2i747.gif"/>
Development of the first Android app
Open Eclipse->file->new, Android Application project
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5B/FA/wKiom1UYF1iBVOc1AABVKHDX98s633.gif "title=" 2015-03-29_231555.gif "alt=" Wkiom1uyf1ibvoc1aabvkhdx98s633.gif "/>
Android Application Architecture
src Java source directory
The Gen automatically generated directory
directory contains all the files automatically generated by the Android development tool. The most important thing in the directory is the R.java file. This file is automatically generated by the Android development tool. The Android Developer tool automatically modifies the R.java file according to the resources you put into the Res directory. Because the R.java file is generated automatically by the development tool, we should avoid manually modifying the R.java. R.java in the application of the role of the dictionary, it contains a variety of resource IDs, through the R.java, the application can easily find the corresponding resources. In addition, the Yi will also check whether the resources in the R.java list are used, and resources that are not used will not be Yi into the software, which can reduce the space occupied by the application on the phone.
libs Support Library directory
Some of the three-party jar packages that are needed to develop the program can be placed in this directory, The system automatically adds the jar package inside to the environment variable.
The compilation directory of the Bin project. Store some temporary files generated at compile time and the. apk file for the current project.
androidmanifest.xml Project manifest file
This file lists the features that the application provides, and the various components you develop later need to be configured in the file, and if the app uses a built-in application (such as phone service, Internet service, SMS, GPS service, etc.), you also need to declare the use rights in the file.
project.properties Project Environment information, it is generally not necessary to modify this file
proguard-project.txt Encryption is used by the current program.
Android Package app and install the process
650) this.width=650; "style=" width:668px;height:184px; "src=" http://s3.51cto.com/wyfs02/M01/5B/F4/wKioL1UYG2_ Yhfhoaafjqcn0tpu532.jpg "title=" image 1.png "border=" 0 "height=" 184 "hspace=" 0 "vspace=" 0 "width=" 668 "alt=" wkiol1uyg2_ Yhfhoaafjqcn0tpu532.jpg "/>
Compiling the Classes.dex file (see 1.1)
Compiling the RESOURCES.ARSC file
1.XML resource files are converted from Text Format compilation to binary format.
2. Generate the Resource Index Table RESOURCES.ARSC.
3. Convert RESOURCES.ARSC to binary format.
ADB (Android Debug Bridge) provides developers with the convenience
IDE Eclipse automatically implements all of the above processes.
1.3 Development of the first Android app