Android preliminary-HelloWorld
The first time I came into contact with Android development, I got a new one, made a Helloworld, and recorded some notes.
Use Eclipce to create a new HelloWorld with the following content:
The role of these content:
I. src
Project source file
Ii. gen
Generated by the ADT plug-in of Eclipse
For each resource, R. java automatically adds an id for the resource, for example, button1 = 0 xxxxx
3. Andorid 2.3.3
Package directory required by the Andorid Program
Iv. assets
Some resource files can be placed. Unlike the res folder, IDs are not generated in the R. java file.
V. res
Drawable-hdpi image resource HD file
Drawable-ldpi
Drawable-mdpi
Because the resolutions of different devices are different, all three files support devices with different resolutions.
Layout/main. xml
The main layout configuration file. You can click here to layout the control.
Values/strings. xml
Key Value configuration file, which can be configured as values in different languages for international purposes
6. AndroidMainfest. xml
Main configuration file of the Andorid application, including all main configurations