Create a Project with Eclipse

来源:互联网 发布:淘宝爱情动作片硬盘 编辑:程序博客网 时间:2024/05/21 08:39
    Create a Project with Eclipse
1.Click New in the toolbar.
2.In the window that appears, open the Android folder, select Android Application Project, and click Next.
3.Fill in the form that appears:
  Application Name is the app name that appears to users. For this project, use "My First App."
  Project Name is the name of your project directory and the name visible in 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.
  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.
  Target SDK indicates the highest version of Android (also using the API level) with which you have tested with your application.
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.
  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.
  Theme specifies the Android UI style to apply for your app. You can leave this alone.
Click Next.
4.On the next screen to configure the project, leave the default selections and click Next.
5.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.
6.Now you can select an activity template from which to begin building your app.
For this project, select BlankActivity and click Next.
7.Leave all the details for the activity in their default state and click 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.


  创建一个Eclipse项目
1.点击新在工具栏。
2.在出现的窗口中打开安卓文件夹, 选择Android应用程序项目,然后单击下一个。
3.填写形式出现:
  应用程序名称是应用程序名称显示给用户。 对于这个项目,使用“我的第一个程序。”
  项目名称是你的项目目录的名称,在Eclipse中可见。
  包名是应用程序的包名称空间(遵循同样的吗 在Java编程语言规则包)。 你的包名 必须是唯一的所有包安装在Android系统。 由于这个原因,它是一般 最好的如果你使用一个名称始于你的组织或反向域名 出版商的实体。 对于这个项目,您可以使用类似“com.example.myfirstapp。” 然而,你不能在谷歌发布你的应用程序使用“com。 例子”名称空间。
  最低要求SDK是你的最低版本的Android应用程序支持, 表示使用API级别。 支持尽可能多的设备,您应该将其设置的最低版本可用 允许你的应用提供核心功能设置。如果你的应用程序的任何特性是可能的 只有在新版本的Android和不是关键应用程序的核心功能,你 只能使功能上运行时支持的版本(是吗 讨论了支持不同的平台版本)。 离开这个设置为这个项目的默认值。
  目标SDK表明最高版本的Android(也使用API级别),你 有测试您的应用程序。
随着新版本的Android可用时,你应该 在新版本上测试你的应用程序和更新这个值以匹配最新的API级别 为了利用新的平台特性。
  编译和平台版本,您将编译你的应用程序。 默认情况下,这个设置为可用的最新版本的Android SDK。 (它应该 Android 4.1或更高版本,如果你没有这样一个可用的版本,您必须安装一个 使用SDK经理)。 你仍然可以构建自己的应用程序 支持旧版本,但设置到最新版本允许您构建目标 启用新特性和优化你的应用程序的最新一个伟大的用户体验 设备。
  主题指定Android UI样式申请你的应用,你可以离开 这种孤独。
点击下一个。 
4.在下一个屏幕上配置项目,保留默认选项并点击下一个。
5.在下一个屏幕上可以帮助你为你的应用创建一个启动器图标。
你可以定制一个图标在几个方面和工具生成一个图标 屏幕密度。 在你发布你的应用程序之前,你应该确保你的图标 中定义的规范图解设计指南。
点击下一个。
6.现在,您可以选择一个活动开始构建应用程序的模板。
对于这个项目,选择BlankActivity并点击下一个。
7.把所有活动的详细信息在默认状态和点击完成。
你的Android项目现在是一个基本的“Hello World”应用程序,其中包含一些默认的文件。 要运行应用程序,继续的下节课。
0 0