Android 1.5 平台
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
API 級別: 3
Android 1.5 是主要平台版本,可部署至 2009 年 5 月起推出的 Android 手機。此版本包含使用者和開發人員適用的新功能,以及 Android 架構 API 的變更。
對於開發人員而言,Android 1.5 平台可做為 Android SDK 的可下載元件使用。可下載的平台包含完全相容的 Android 程式庫和系統映像檔,以及一組模擬器外觀、應用程式範例等等。可下載的平台完全符合規定,且不含任何外部程式庫。
如要開始針對 Android 1.5 平台進行開發或測試,請使用 Android SDK 和 AVD Manager 工具,將該平台下載至 Android 1.6 以上版本的 SDK。
平台重點
如需新使用者功能和平台重點的清單,請參閱 Android 1.5 平台重點文件。
API 級別
Android 1.5 平台提供更新版的架構 API。Android 1.5 API 會指派一個整數 ID (3),並儲存在系統本身。這個 ID 稱為「API 級別」,可讓系統在安裝應用程式前,正確判斷應用程式是否與系統相容。
如要在應用程式中使用 Android 1.5 中推出的 API,您需要在應用程式資訊清單中 <uses-sdk>
元素的 android:minSdkVersion
屬性中,設定適當的值「3」。
如要進一步瞭解如何使用 API 級別,請參閱「API 級別」說明文件。
Framework API 異動
以下各節提供 Android 1.5 平台提供的應用程式架構 API 相關資訊。
UI 架構
- 原始音訊錄音和播放 API
- 互動式 MIDI 播放引擎
- 開發人員專用的影片錄製 API (3GP 格式)
- 影片和相片分享意圖
- 媒體搜尋意圖
應用程式定義的硬體需求
應用程式現在可以在資訊清單檔案中使用新元素 <uses-configuration>
,向 Android 系統指出需要哪些硬體功能才能正常運作。舉例來說,應用程式可能會使用元素指定需要使用實體鍵盤或特定瀏覽裝置 (比如軌跡球)。在安裝應用程式前,Android 系統會檢查為 <uses-configuration>
元素定義的屬性,並且僅在裝置上有所需硬體時,才允許繼續安裝。
語音辨識架構
其他 API 新增項目
- LocationManager - 應用程式可透過 Intent 取得位置變更更新
- WebView - 支援觸控開始/結束/移動/取消 DOM 事件
- 重新設計的
Sensor Manager
APIs
- GLSurfaceView:用於建立 OpenGL 應用程式的便利架構
- 應用程式更新安裝作業的廣播意圖成功 - 可提供更順暢的應用程式升級體驗
API 差異比較報表
如要進一步瞭解 Android 1.5 (API 級別 3) 中的 API 異動,以及與先前版本的差異,請參閱 API 差異比較表。
內建應用程式
下載平台中提供的系統映像檔提供下列內建應用程式:
- 鬧鐘
- Browser
- 計算機
- 攝錄影機
- 相機
- 聯絡人
- 自訂語言代碼 (開發人員應用程式)
- 開發人員工具 (開發人員應用程式)
|
- Dialer
- 電子郵件
- 圖庫
- 日文文字輸入的輸入法編輯器
- 訊息
- 音樂
- 設定
- 備用零件 (開發人員應用程式)
|
語言/地區
下載平台中提供的系統映像檔提供多種內建語言代碼。在某些情況下,可為語言代碼提供區域專屬字串。在其他情況下,系統會使用該語言的預設版本。下方列出 Android 1.5 系統映像檔支援的語言 (含 language_country/region 語言代碼描述符)。
- 中文 (簡體)
- 中文,台灣 (zh_TW)
- 捷克文 (cs_CZ)
- 荷蘭文 (荷蘭) (nl_NL)
- 荷蘭文 (比利時) (nl_BE)
- 英文 (美國) (en_US)
- 英文 (英國) (en_GB)
- 英文 (加拿大) (en_CA)
- 英文 (澳洲) (en_AU)
- 英文 (紐西蘭) (en_NZ)
- 英文 (新加坡) (en_SG)
- 法文 (法國) (fr_FR)
- 法文 (比利時) (fr_BE)
|
法文 (加拿大) (fr_CA)
法文 (瑞士) (fr_CH)
德文 (德國) (de_DE)
德文 (奧地利) (de_AT)
德文 (瑞士) (de_CH)
德文 (列支敦斯登) (de_LI)
義大利文 (義大利) (it_IT)
義大利文 (瑞士) (it_CH)
日文 (ja_JP)
韓文 (ko_KR)
波蘭文 (pl_PL)
俄文 (ru_RU)
西班牙文 (es_ES)
|
本地化 UI 字串會與可透過「設定」存取的語言代碼相符。
模擬器外觀
下載平台包含一組模擬器外觀,可用於以不同螢幕尺寸和解析度模擬應用程式。模擬器外觀如下:
-
QVGA-P (240x320、低密度、小螢幕)
-
QVGA-L (320x480、低密度、小螢幕)
-
HVGA (320x480、中密度、一般螢幕)
-
HVGA-P (320x480、中密度、一般螢幕)
-
HVGA-L (320x480、中密度、一般螢幕)
如要進一步瞭解如何開發可在所有 Android 裝置上正常顯示及運作的應用程式,請參閱「支援多種螢幕」。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[],[],null,["# Android 1.5 Platform\n\n*API Level:* **3**\n\nAndroid 1.5 is a major platform release\ndeployable to Android-powered handsets starting in May 2009.\nThe release includes new features for users and developers, as well as changes\nin the Android framework API.\n\nFor developers, the Android 1.5 platform is available as a\ndownloadable component for the Android SDK. The downloadable platform includes a\nfully compliant Android library and system image, as well as a set of emulator\nskins, sample applications, and more. The downloadable platform is fully\ncompliant and includes no external libraries.\n\nTo get started developing or testing against the Android\n1.5 platform, use the Android SDK and AVD Manager tool to\ndownload the platform into your Android 1.6 or later SDK.\n\nPlatform Highlights\n-------------------\n\nFor a list of new user features and platform highlights, see the [Android\n1.5 Platform Highlights](https://developer.android.com/about/versions/android-1.5-highlights.html) document.\n\nAPI Level\n---------\n\nThe Android 1.5 platform delivers an updated version of\nthe framework API. The Android 1.5 API\nis assigned an integer identifier ---\n**3** --- that is\nstored in the system itself. This identifier, called the \"API Level\", allows the\nsystem to correctly determine whether an application is compatible with\nthe system, prior to installing the application.\n\nTo use APIs introduced in Android 1.5 in your\napplication, you need to set the proper value, \"3\", in the\n`android:minSdkVersion` attributes of the `\u003cuses-sdk\u003e`\nelement in your application's manifest.\n\nFor more information about how to use API Level, see the [API Levels](/guide/topics/manifest/uses-sdk-element#ApiLevels) document.\n\nFramework API Changes\n---------------------\n\nThe sections below provide information about the application framework API provided by the Android 1.5 platform.\n\n### UI framework\n\n- Framework for easier background/UI thread interaction\n- New [SlidingDrawer](/reference/android/widget/SlidingDrawer) widget\n- New [HorizontalScrollview](/reference/android/widget/HorizontalScrollView) widget\n\n### AppWidget framework\n\n- APIs for creating secure home screen [AppWidgets](/reference/android/appwidget/package-summary). For information about how to use AppWidgets, see the Developer's Guide [AppWidgets](/guide/topics/appwidgets) documentation. Also see [Introducing home screen widgets and the AppWidget\n framework](http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html) on the Android Developer's Blog.\n- APIs for populating [Live Folders](/reference/android/provider/LiveFolders) with custom content.\n\n### Media framework\n\n- Raw audio recording and playback APIs\n- Interactive MIDI playback engine\n- Video recording APIs for developers (3GP format)\n- Video and photo sharing Intents\n- Media search Intent\n\n### Input Method framework\n\n- [Input Method\n Service](/reference/android/inputmethodservice/InputMethodService) framework\n- Text-prediction engine\n- Ability to provide downloadable IMEs to users\n\n### Application-defined hardware requirements\n\nApplications can now use a new element in their manifest files, [`\u003cuses-configuration\u003e`](/guide/topics/manifest/uses-configuration-element)\nto indicate to the Android system what hardware features\nthey require in order to function properly. For example, an application might\nuse the element to specify that it requires a physical keyboard or a particular\nnavigation device, such as a trackball. Prior to installing the application, the\nAndroid system checks the attributes defined for the\n`\u003cuses-configuration\u003e` element and allows the installation to\ncontinue only if the required hardware is present.\n\n### Speech recognition framework\n\n- Support for using speech recognition libraries via Intent. See [RecognizerIntent](/reference/android/speech/RecognizerIntent).\n\n### Miscellaneous API additions\n\n- LocationManager - Applications can get location change updates via Intent\n- WebView - Touch start/end/move/cancel DOM event support\n- Redesigned [Sensor Manager\n APIs](/reference/android/hardware/SensorManager)\n- GLSurfaceView - convenience framework for creating OpenGL applications\n- Broadcast Intent for app update install succeeded - for smoother app upgrade experience\n\n### API differences report\n\nFor a detailed view of API changes in Android 1.5 (API Level 3), as compared to\nthe previous version, see the [API\nDifferences Report](/sdk/api_diff/3/changes).\n\nBuilt-in Applications\n---------------------\n\nThe system image included in the downloadable platform provides these\nbuilt-in applications:\n\n|----------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|\n| - Alarm Clock - Browser - Calculator - Camcorder - Camera - Contacts - Custom Locale (developer app) - Dev Tools (developer app) | - Dialer - Email - Gallery - IME for Japanese text input - Messaging - Music - Settings - Spare Parts (developer app) |\n\nLocales\n-------\n\nThe system image included in the downloadable platform provides a variety of\nbuilt-in locales. In some cases, region-specific strings are available for the\nlocales. In other cases, a default version of the language is used. The\nlanguages that are available in the Android 1.5 system\nimage are listed below (with *language* _*country/region*\nlocale descriptor).\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| - Chinese, PRC (zh_CN) - Chinese, Taiwan (zh_TW) - Czech (cs_CZ) - Dutch, Netherlands (nl_NL) - Dutch, Belgium (nl_BE) - English, US (en_US) - English, Britain (en_GB) - English, Canada (en_CA) - English, Australia (en_AU) - English, New Zealand (en_NZ) - English, Singapore(en_SG) - French, France (fr_FR) - French, Belgium (fr_BE) | - French, Canada (fr_CA) - French, Switzerland (fr_CH) - German, Germany (de_DE) - German, Austria (de_AT) - German, Switzerland (de_CH) - German, Liechtenstein (de_LI) - Italian, Italy (it_IT) - Italian, Switzerland (it_CH) - Japanese (ja_JP) - Korean (ko_KR) - Polish (pl_PL) - Russian (ru_RU) - Spanish (es_ES) |\n\nLocalized UI strings match the locales that are accessible\nthrough Settings.\n\nEmulator Skins\n--------------\n\nThe downloadable platform includes a set of emulator skins that you can use for modeling your application in different screen sizes and resolutions. The emulator skins are:\n\n- QVGA-P (240x320, low density, small screen)\n- QVGA-L (320x480, low density, small screen)\n- HVGA (320x480, medium density, normal screen)\n- HVGA-P (320x480, medium density, normal screen)\n- HVGA-L (320x480, medium density, normal screen)\n\nFor more information about how to develop an application that displays and functions properly on all Android-powered devices, see [Supporting Multiple Screens](/guide/practices/screens_support)."]]