Android Learning (2) -- the first Android Project

Source: Internet
Author: User


1. Use eclipse to create an endroid Project


After the environment is configured, it is not too difficult to create it using eclipse.

1.1 Step 1: Right-click New> project and select the android project under Android, as shown in figure

1.2 next: Enter the project name, select the SDK version, and enter the package name, as shown in figure

Note: If the SDK directory is not configured in window-> preferences (Section 3.3 in the previous section), you cannot see the SDK version in build target. In addition, you need to enter the packge name in packge name, XX. XX format;


1.2 Click Finish to complete the creation.


2. Run the project


Some configuration is required during running.

2.1 right-click the project, run as-> RUN deployments, select the Android Application option, and right-click New, for example, browse, and select the project you just created;


2.2 select the target tag and configure AVD. If there is no option list or the version in the Option List does not match the project you created, click the manager in the lower right corner to repeat the previous section (4. Create Android virtual drivers (AVD ));



2.3 click Run to start the project. The corresponding log is displayed on the eclipse console, which is slow to start. The final startup interface is as follows;



This interface is an emulator in Android development. It is similar to operations on mobile phones, but it cannot be photographed. If you install software, you need to configure sdcard. This part will be learned later.


Okay. So far, the first Android project has been created and started!


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.