The following describes in detail the full parsing of the functions of the Adroid mobile phone program. Before learning about the Adroid mobile phone program, what is the Adroid mobile phone program? The so-called Adroid mobile phone program: Android is an open-source mobile phone operating system developed by Google based on the Linux platform. The registered trademark in China is "an zhi ").
AVD, AVD is called Android Virtual Device, which is the Virtual Device where the Adroid mobile phone program runs. It is recognized by the Android simulator and then runs the Android program we wrote. To run Android, we must create our own AVD.
You can configure many running projects on AVD. There are two ways to create AVD. The first is the Elcipse development environment, and the second is the creation through the command line. Create an Eclipse Development Environment: Select Android AVD Manager under Windows in the Elcipse menu, and the following form is displayed:
In name, enter the AVD name. In Target, select the class library (Android 1.1, Android1.5, or Google APIs 1.5), create the SDCard and skin, and click Finish. Create a command line: Find the path of Tools in the command line mode, and enter the command: android create avd -- target 2 -- name my_avd. android is the command, followed by the parameter, create avd is the creation of AVD, target 2 is the level, and name is the name of Avd.
Create the first Adroid mobile phone program development project:
1. Select File> New> Project and select Android Project. The interface is as follows:
2. Click Next To Go To The following page:
3. Enter the following content: Project Name: Name of the Eclipse Project. Application Name: the Name of the Application, which is displayed on the Android device.
Package Name: This is the namespace of the Java Package.
The res folder contains resources used by android. drawable is an image, that is, the program icon displayed in Android Devices. Layout is the layout, where TextView is the configuration. Resources are placed in values.