Write the first Android running program

Source: Internet
Author: User

Try to build the first Android program and install the corresponding development environment, mainly the Android plug-in and its corresponding SDK.

1. After the installation is complete, open the File menu and click Other in the New menu to bring up the following interface:

Click next to bring up the following interface:

Enter the project name, such as AndroidDemo, and click next, for example:

Select the SDK Android4.0.3. Click the next button, for example:

Modify the name of the current package to com. android. Click finish to create a project. The following figure is displayed in the left-side tree:

2. Enter the prompt to be displayed in the step

3. Click

Click the red icon, as shown in the following figure:

Enter the name of the current AVD and select target, for example: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + pgltzybzcm9 "http://www.bkjia.com/uploadfile/Collfiles/20140110/20140110090446146.jpg" alt = "\">

Skin after running the program and its interface selection box

4. Click run configuration in the run menu, as shown in figure

Select the target page on the right, as shown in figure

Select the AVD name you just created for the red area.

5. Click Run, as shown in figure

6. The displayed prompt information is those in the input.

NOTE: If Adbconnection Error occurs during running, the remote host forces an existing connection to be closed. During the first running, I always indicated this error. Later, it was because I installed the pea pod and uninstalled it.

Related Article

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.