Android Devices is automatically generated by an Android plug-in. It inherits the Activity class, which is a Class running on android. In short, it is an interface. The content in the gen folder is automatically generated. You are not advised to manually modify the content in this folder.
To run Android Devices, you must create your own AVD. You can configure many running projects on each 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:
Enter the name of Android Devices in name, select the class library (Android 1.1, Android1.5, or Google APIs 1.5) in Target, create the SDCard and skin, and click Finish. CREATE command line: Find the path of Tools in command line mode.
Enter the command: android create avd -- target 2 -- name my_avd. android is the command, followed by the parameter, Create avd is the AVD, target 2 is the level, and name is the Avd name. Create the first Android development Project: Select File> New> Project and select Android Project. The interface is as follows:
The 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.