1. 程式人生 > >程式設計師前進的一小步,能夠看懂並翻譯英文文章

程式設計師前進的一小步,能夠看懂並翻譯英文文章

Original :

developer tools

The Android Developer Tools (ADT) plugin for Eclipse provides a professional-grade development environment for building Android apps. It's a full Java IDE with advanced features to help you build, test, debug, and package your Android apps.

Free, open-source, and runs on most major OS platforms.
To get started,

download the Android SDK.

譯: 開發人員工具

Android開發工具ADT)外掛為Eclipse提供了用於構建Android應用程式的專業級開發環境。這是一個完整的JavaIDE,具有先進的功能,以幫助構建,測試除錯和打包你的Android應用程式

免費開源的並且在大多數主要的作業系統平臺上執行。
要開始使用,下載Android SDK

Full Java IDE

  • Android-specific refactoring, quick fixes, integrated navigation between Java and XML resources.
  • Enhanced XML editors for Android XML resources.
  • Static analysis tools to catch performance, usability, and correctness problems.
  • Build support for complex projects, command-line support for CI through Ant. Includes ProGuard and app-signing.
  • Template-based wizard to create standard Android projects and components.

譯:

完整的Java IDE
Android的特定重構快速修復Java和XML之間的資源組合導航
•增強的XML編輯器為Android的XML資源
靜態分析工具捕捉效能,可用性和正確性問題
•建立複雜的專案,通過Ant進行CI命令列的支援。包括ProGuard,並將應用程式簽名
基於模板的嚮導來建立標準的Android專案和元件

       Create a Project with Eclipse

     使用Eclipse建立一個工程

  1. Click New in the toolbar.

      在工具欄點選新建

  1. In the window that appears, open the Android folder, selectAndroid Application Project, and clickNext.
 在 出現的窗體中 開啟 android 資料夾 選擇 Android Application 專案 然後點選Next

                 Fill in the form that appears: 

              填充出現的表格   

    1. 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 theAPI 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 inSupporting Different Platform Versions). Leave this set to the default value for this project.
  • Target SDK indicates the highest version of Android (also using theAPI 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.
  1. Click Next.
  2. On the next screen to configure the project, leave the default selections and clickNext.
  3. 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 theIconography design guide.

    Click Next.

  4. Now you can select an activity template from which to begin building your app.

    For this project, select BlankActivity and clickNext.

  5. Leave all the details for the activity in their default state and clickFinish.
  6. Your Android project is now a basic "Hello World" app that contains some default files. To run the app, continue to thenext lesson.

應用名稱是顯示給使用者的應用程式名稱。對於這個專案,使用“我的第一個應用程式。 ”



•專案名稱就是你的專案目錄的名稱,名稱在Eclipse中可見。
•程式包名稱的包的名稱空間為您的應用程式(遵循相同的規則,在Java程式語言包) 。你的包名稱必須在安裝了Android系統上的所有軟體包唯一的。出於這個原因,它通常最好的,如果您使用的開始與您的組織或出版者實體的反向域名名稱。對於這個專案,你可以使用類似“ com.example.myfirstapp 。 ”但是,你不能在谷歌播放使用為“com.example ”名稱空間釋出你的應用程式。
•最低要求SDK是Android的最低版本,你的應用程式支援,表示使用API​​級別。為了支援儘可能多的裝置越好,你應該將其設定為可用,可以讓您的應用程式,以提供其核心功能集的最低版本。如果您的應用程式的任何功能可能只在較新版本的Android ,它不是以應用程式的核心功能集的關鍵,你可以在支援它的版本只執行時(如在支援不同的平臺版本討論)啟用該功能。將它設定為預設值,為這個專案。
•目標SDK中表示最高版本的Android (也使用API​​級別),您已與您的應用程式進行測試的。
由於Android的新版本可用,您應該測試應用程式的新版本,並更新此值,以便利用新的平臺功能利用最新的API級別相匹配。

•編譯是平臺版本針對您將編譯您的應用程式。預設情況下,此選項設定為可用的Android的最新版本,在你的SDK 。 (這應該是Android的4.1或更高版本,如果你沒有這樣的版本,您必須使用SDK管理器安裝一個) 。你還可以建立自己的應用程式來支援舊版本,但構建目標設定到最新版本允許您啟用新功能和優化您的應用程式的最新的裝置出色的使用者體驗。
•主題指定了Android的UI風格申請您的應用程式。你可以不理會這一點。
1,單擊下一步。
2,2009在下一個螢幕,用於配置專案,保留預設選項,然後單擊下一步。
3,在下一個螢幕上可以幫助你建立你的應用程式的起動器圖示。
您可以通過多種方式自定義的圖示和工具生成所有的螢幕密度的圖示。在您釋出您的應用程式,你應該確保你的圖示在開會的影像學設計指南中定義的規範。

單擊下一步。

4.Now您可以選擇從哪個開始建立你的應用程式的活動模板。
對於這個專案,選擇BlankActivity ,然後單擊下一步。

5.Leave所有的細節在其預設狀態的活動,並單擊Finish。
6.Your Android專案現在是一個基本的“Hello World ”應用程式,它包含了一些預設的檔案。為了執行應用程式,繼續下一課。