Android getting started tutorial (3) -- import existing Android engineering http://blog.csdn.net/android_tutor)

Source: Internet
Author: User
Enable Android Project

In the eclipse environment, select [file-> New-> project] from the menu in the upper left corner. The [new project] dialog box is displayed. eclipse is a common editing environment that supports the creation of many types of projects based on the plug-ins you install. click the [Android project] dialog box in the [Android] folder and click "Browse .. "button to select [enable an existing project] (Create project from existing source ). now, select the "F:/Android/Projects" directory for the helloandroid project [F:/Android/projects/helloandroid].
When we select an existing project, such as the name (project name) and other content in the [new Android project] dialog box will be automatically filled in. in this case, you can press the [finish] button to complete the action from adding an existing project to the eclipse environment.

 

Import Android Project

If your android project is already in the workspace folder and you want to use the preceding method to open an existing Android project, you will receive a warning that the project you want to open is already in the working directory. so we have to use another method: import the project.

In the top-left menu of Eclipse, select [file-> Import] to bring up the [import] dialog box. select the [general-> existing projects into workspace] project and press the [next] button to display a new screen. next to the [select root directory] field, click [browse...] on the right. click to select the project. after the selection, press the [finish] button to import the project from the current working environment (workspace) folder to the eclipse environment.

Examples of different SDK versions are stored in the [andriod_sdk/plateforms/Android-version/samples] Directory. Select an example based on the version you want to develop.

 

 

Switch SDK version

After sdk1.5, Android introduces new features that support SDK Simulators of multiple versions. This allows us to modify the attribute settings, to compile and run the target SDK version of these projects.
Right-click the [helloandroid] folder of [navigator] and select the [properties] Option to enable the project Property setting interface.
Select the android tag on the left in the settings screen. The [Project Build target] menu is displayed.
Select an appropriate target version in the menu, and then press OK to end the setting screen. Then, the project is switched to the desired version compiling status.

The best way to get started is to open (pour in) others' cases.Code

There are many examples in the android SDK directory Android-SDK-Windows \ samples.

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.