- Click New in the toolbar.(在工具栏点击新建图标)
- In the window that appears, open the Android folder, select Android Application Project, and click Next.(在出现的窗体中,打开Android文件夹,选择Android应用程序的项目,再点击Next)
- Fill in the form that appears:(填写出现的形式)
- Application Name is the app name that appears to users. For this project, use "My First App."(Application Name 是显示给用户的应用程序名称。对于这个项目,使用"My First App")
- Project Name is the name of your project directory and the name visible in Eclipse.(Project Name是项目目录中的名字,这个名字在Eclipse中时可见的)
- Package Name is the package namespace for your app (following the same rules as packages in the Java programming language). Your package name must be unique across all packages installed on the Android system. For this reason, it's generally best if you use a name that begins with the reverse domain name of your organization or publisher entity. For this project, you can use something like "com.example.myfirstapp." However, you cannot publish your app on Google Play using the "com.example" namespace.(Package Name是应用程序中的包名称空间(遵循同样的Java编程语言规则)包名必须是在所有Android系统安装包是唯一的。介于这个原因,一般来讲,包名最开始最好使用自己的组织的反向域名或出版商实体,就像这个项目,可以使用类似于“com.example.myfirstapp".但是你不可以在Google Play发表自己带有com.example的名称空间)
- Minimum Required SDK is the lowest version of Android that your app supports, indicated using the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set. If any feature of your app is possible only on newer versions of Android and it's not critical to the app's core feature set, you can enable the feature only when running on the versions that support it (as discussed in Supporting Different Platform Versions). Leave this set to the default value for this project.(Minimum Required SDK是应用程序支持的最低版本的Android应用程序,表明使用的该API级别。为了支持尽可能多的设备,应该将其设置的最低版本,以便应用程序能够提供其核心功能。如果应用程序的任何特性是可能只在新版本的Android实现或者它不是关键应用程序的核心功能,可以使得该功能只有在对应版本上才能运行,支持不同的平台版本(如前所述)。离开这个设置就自动设置为这个项目的默认值。)
- Target SDK indicates the highest version of Android (also using the API level) with which you have tested with your application.(Target SDK是表明在测试的应用程序中最高版本的Android(使用的API级别))
As new versions of Android become available, you should test your app on the new version and update this value to match the latest API level in order to take advantage of new platform features.(随着新版本的Android发布时,应该在新版本上测试应用程序和更新这个值以匹配最新的API级别,以利用新的平台特性。)
- Compile With is the platform version against which you will compile your app. By default, this is set to the latest version of Android available in your SDK. (It should be Android 4.1 or greater; if you don't have such a version available, you must install one using the SDK Manager). You can still build your app to support older versions, but setting the build target to the latest version allows you to enable new features and optimize your app for a great user experience on the latest devices.(Compile With是应用程序的版本,默认情况下,这是可以设置为可用的最新版本的Android SDK。(应该是Android 4.1或更高版本,如果没有这样一个可用的版本,必须安装一个使用SDK管理器)。仍然可以构建应用程序来支持旧版本,但设置构建目标到最新版本允许您启用新特性和优化你的应用程序的用户体验最新的设备。)
- Theme specifies the Android UI style to apply for your app. You can leave this alone.(Theme是应用程序申请的指定的Android UI风格,也可以不选择离开)
Click Next.(点击Next)
- On the next screen to configure the project, leave the default selections and click Next.(在下一个屏幕上配置项目,保留默认选项并单击Next)
- The next screen can help you create a launcher icon for your app.(下一个屏幕可以帮助你为你的应用创建一个启动器图标)
You can customize an icon in several ways and the tool generates an icon for all screen densities. Before you publish your app, you should be sure your icon meets the specifications defined in the Iconography design guide.(你可以用几种方式定制一个图标,对所有屏幕密度工具生成一个图标。在发布应用程序之前,应该确保图标符合规范中定义的图解设计指南。)
Click Next.(点击Next)
- Now you can select an activity template from which to begin building your app.(现在,可以开始选择一个活动构建应用程序的模板)
For this project, select BlankActivity and click Next.(对于这个项目而言,选择BlankActivity,并点击Next)
- Leave all the details for the activity in their default state and click Finish.(离开默认状态的所有活动细节并单击Finish)
Your Android project is now a basic "Hello World" app that contains some default files. To run the app, continue to the next lesson.(现在Android项目是一个基本的“Hello World”应用程序,其中包含一些默认的文件。要运行应用程序,继续下一个教程。)