Work related to Android Devices

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.