To get started with Android, please read the following sections first:
要入門Android,請首先閱讀下面的章節:
- Installing the SDK and Plugin
- 安裝SDK和插件
- How to install the SDK and Eclipse plugin, or how to use other tools to build Android applications. Also a guide to running the sample applications.
- 如何安裝SDK和Eclipse插件,如何使用其他工具構建Android應用程序。同時也是運行示例應用的指南。
- Hello Android!
- 你好,Android!
- Writing your first Android Application, the ever popular Hello World, Android style.
- 以Android的方式編寫你的第一個Android應用:曾經流行的Hello World應用。
- Anatomy of an Android Application
- Android應用程序剖析
- A guide to the structure and architecture of an Android Application. This guide will help you understand the pieces that make up an Android app.
- Android架構指南。該指南將幫助你理解組成Android應用的各個部分。
- Tutorial: Building a Full Android Application
- 教程:構建一個全功能的Android應用程序
- This tutorial document will lead you through constructing a real Android Application: A notepad which can create, edit and delete notes, and covers many of the basic concepts with practical examples.
- 該教程穩定將帶領你構建一個真實的Android應用:一個記事本,可以生成,編輯,刪除筆記,同時涵蓋很多基本概念。
- Development Tools
- 開發工具
- The command line tools included with the SDK, what they do, and how to use them.
- SDK自帶的命令行工具,它們能做什麼,已經如何使用它們。
- Lifecycle of an Android Application
- Android應用程序生命週期
- The important lifecycle details for Applications and Activities running inside of them.
- 應用程序重要的生命週期細節和運行於其中的活動。
-
Other Introductory Material
-
其他介紹材料
After reading the sections above, the following Getting Started information is also very useful:
-
閱讀完上面的部分,下面的入門信息同樣有用:
Core Packages
-
核心包
These are the basic packages that make up the Android SDK for writing applications. The packages are organized as layers, listed here from lowest-level to highest.
-
Android SDK由很多基本的包組成,用於開發應用程序。包以分層方式組織,下面從低到高列出。
- android.util
- contains various low-level utility classes, such as specialized container classes, XML utilities, etc.
- 包含多個底層功能類,如特殊容器類,XML功能類等。
- android.os
- provides basic operating system services, message passing, and inter-process communication.
- 提供基本的操作系統服務,消息傳遞,進程間通信。
- android.graphics
- is the core rendering package.
- 核心的展現包。
- android.text, android.text.method, android.text.style, and android.text.util
- supply a rich set of text processing tools, supporting rich text, input methods, etc.
- 提供一組豐富的文本處理工具,支持富文本,輸入方法等。
- android.database
- contains low-level APIs for working with databases.
- 包含底層數據庫訪問API。
- android.content
- provides various services for accessing data on the device: applications installed on the device and their associated resources, and content providers for persistent dynamic data.
- 提供多種訪問設備數據的服務:安裝在設備上的應用程序,和其相關資源,用於持久化動態數據的數據提供者。
- android.view
- is the core user-interface framework.
- 核心的用戶界面框架
- android.widget
- supplies standard user interface elements (lists, buttons, layout managers, etc) built from the view package.
- 從視圖包構造的標準用戶界面元素(列表,按鈕,佈局管理器等)
- android.app
- provides the high-level application model, implemented using Activities.
- 提供上層應用模型,通過活動實現
Other Notable Packages
-
其他需要注意到包
These packages provide additional domain-specific features of the Android platform. They are not necessary for basic application development.
-
這些包提供Android平臺附加的領域相關的特徵。對基本應用開發並非必須的。
- android.provider
- contains definitions for various standard content providers included with the platform.
- 包含平臺自帶的多種標準內容提供者定義。
- android.telephony
- provides APIs for interacting with the device's phone stack.
- 提供訪問設備電話協議棧的API。
- android.webkit
- includes various APIs for working with web-based content.
- 包含多個與基於Web內容工作的API。