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 管理器工具将该平台下载到 Android 1.6 或更高版本的 SDK 中。
平台亮点
如需查看面向用户的新功能和平台亮点的列表,请参阅 Android 1.5 平台亮点文档。
API 级别
Android 1.5 平台提供了更新后的框架 API 版本。Android 1.5 API 会被分配一个整数标识符(3),该标识符存储在系统本身中。此标识符称为“API 级别”,可让系统在安装应用之前正确确定应用是否与系统兼容。
如需在应用中使用 Android 1.5 中引入的 API,您需要在应用清单的 <uses-sdk>
元素的 android:minSdkVersion
属性中设置适当的值“3”。
如需详细了解如何使用 API 级别,请参阅 API 级别文档。
框架 API 变更
以下各部分介绍了 Android 1.5 平台提供的应用框架 API。
界面框架
- 原始音频录制和播放 API
- 交互式 MIDI 播放引擎
- 面向开发者的视频录制 API(3GP 格式)
- 视频和照片分享 intent
- 媒体搜索 intent
应用定义的硬件要求
应用现在可以在清单文件中使用一个新元素 <uses-configuration>
,向 Android 系统指明它们正常运行所需的硬件功能。例如,应用可能会使用该元素指定它需要物理键盘或特定的导航设备(例如轨迹球)。在安装应用之前,Android 系统会检查为 <uses-configuration>
元素定义的属性,并且仅在存在所需硬件时才允许继续安装。
语音识别框架
Miscellaneous API 新增内容
- LocationManager - 应用可以通过 intent 获取位置信息更改更新
- WebView - 支持触摸开始/结束/移动/取消 DOM 事件
- 重新设计了
Sensor Manager
APIs
- GLSurfaceView - 用于创建 OpenGL 应用的便捷框架
- 应用更新安装成功的广播 intent - 以获得更顺畅的应用升级体验
API 差异报告
如需详细了解 Android 1.5(API 级别 3)与之前版本的 API 变更,请参阅 API 差异报告。
内置应用
可下载平台中包含的系统映像提供了以下内置应用:
- 闹钟
- 浏览器
- 计算器
- 摄像机
- 相机
- 通讯录
- 自定义语言区域(开发者应用)
- 开发者工具(开发者应用)
|
- 拨号器
- 电子邮件
- 图库
- 用于输入日语文本的 IME
- 消息功能
- 音乐
- 设置
- 备件(开发者应用)
|
语言区域
可下载平台中包含的系统映像提供多种内置语言区域。在某些情况下,特定区域的语言区域提供特定区域的字符串。在其他情况下,系统会使用该语言的默认版本。下表列出了 Android 1.5 系统映像中提供的语言(使用 language_country/region 语言区域描述符)。
- 中文(中国)(zh_CN)
- 繁体中文(台湾)(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)
|
本地化的界面字符串与可通过“设置”访问的语言区域匹配。
模拟器皮肤
可下载的平台包含一组模拟器皮肤,可用于在不同屏幕尺寸和分辨率下对应用进行建模。模拟器皮肤如下:
-
QVGA-P(240x320、低密度、小屏幕)
-
QVGA-L(320x480、低密度、小屏幕)
-
HVGA(320x480、中等密度、普通屏幕)
-
HVGA-P(320x480、中等密度、普通屏幕)
-
HVGA-L(320x480、中等密度、普通屏幕)
如需详细了解如何开发可在所有 Android 设备上正常显示和运行的应用,请参阅支持多种屏幕。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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)."]]