Welcome to Android 5.0 Lollipop—thelargest and most ambitious release for Android yet!

欢迎来到Android 5.0Lollipop-the最大、最雄心勃勃的Android版本!

This release is packed with newfeatures for users and thousands of new APIs for developers. It extends Androideven further, from phones, tablets, and wearables, to TVs and cars.

这个版本是包含的新特性为用户和数以千计的新api为开发人员。它进一步扩展了Android,从手机、平板电脑、和这套,电视和汽车。

For a closer look at the new developerAPIs, see theAndroid 5.0 APIOverview. Or, read more about Android 5.0 for consumers atwww.android.com.

仔细看看新开发人员API,看到Android 5.0 API的概述。或者,为消费者阅读更多关于Android5.0 atwww.android.com

Material design

材料设计

Android 5.0 bringsMaterial designto Android and gives you an expanded UItoolkit for integrating the new design patterns easily in your apps.

Android 5.0Android和给你带来材料设计的UI工具包扩大整合新的设计模式很容易在你的应用程序。

New3D viewslet you set a z-level to raiseelements off of the view hierarchy and castrealtime shadows,even as they move.

新的3 d视图允许您设置一个z值提高元素的视图层次和实时阴影,即使他们是运动的。

Built-inactivity transitionstake the user seamlessly from onestate to another with beautiful, animated motion. The material theme addstransitions for your activities, including the ability to usesharedvisual elementsacrossactivities.

内置活动转换带用户无缝地从一个状态到另一个美丽的,动画运动。材料主题添加转换为您的活动,包括使用共享视觉元素在活动的能力。

Ripple animations are available forbuttons, checkboxes, and other touch controls in your app.

A new system-managed processing threadcalled RenderThreadkeeps animations smooth even whenthere are delays in the main UI thread.

涟漪动画可供按钮、复选框和其他触摸控制在你的应用程序。
一个新的系统管理的处理线程叫做 RenderThread渲染线程)使动画平滑即使有延迟主UI线程。

Performance focus

性能的关注

Android 5.0 provides a faster, smootherand more powerful computing experience.

Android 5.0提供了一个更快、更顺畅的和更强大的计算体验。

Android now runs exclusively on the newART runtime, built from the ground upto support a mix of ahead-of-time (AOT), just-in-time (JIT), and interpretedcode. It’s supported on ARM, x86, and MIPS architectures and is fully 64-bit compatible.

Android现在完全依靠新ART 运行时,从头构建的支持的提前(AOT),准时制(JIT),和解释代码。它的支持ARM,x86,MIPS架构和完全兼容64位。

ART improves app performance andresponsiveness. Efficient garbage collection reduces the number and duration ofpauses for GC events, which fit comfortably within the v-sync window so yourapp doesn’t skip frames. ART also dynamically moves memory to optimizeperformance for foreground uses.

ART可以提高应用程序的性能和响应能力。有效减少垃圾收集的数量和持续时间为GC暂停事件,舒舒服服的,适合在v-sync窗口,这样你的应用程序不会跳帧。ART也动态移动的内存优化前台使用的性能。

Android 5.0 introduces platform supportfor64-bit architectures—usedby the Nexus 9's NVIDIA Tegra K1. Optimizations provide larger address spaceand improved performance for certain compute workloads. Apps written in theJava language run as 64-bit apps automatically—no modifications are needed. Ifyour app uses native code, we’ve extended the NDK to support new ABIs for ARMv8, and x86-64, and MIPS-64.

Android 5.0引入了平台支持64体系结构-used Nexus 9NVIDIA Tegra K1。优化提供更大的地址空间和对某些计算工作负载的性能改善。用Java语言编写的应用程序自动运行64位程序- 不需要修改。如果您的应用程序使用本机代码,我们将NDK扩展到支持新的ARM v8,,abix86 - 64 mips - 64

Continuing the focus on smootherperformance, Android 5.0 offers improved A/V sync. The audio and graphicspipelines have been instrumented for more accurate timestamps, enabling videoapps and games to display smooth synchronized content.

继续关注平稳性能,Android5.0提供了改进的A/ V同步。音频和图像管道已经检测了更精确的时间戳,让视频和游戏可以更平稳、同步的显示内容。

Notifications

Notifications in Android 5.0 are morevisible, accessible, and configurable.

通知在Android5.0可见,可访问和可配置。

Varying notification details may appearon the lock screenif desired by the user. Users mayelect to allow none, some, or all notification content to be shown on a securelock screen.

用户锁屏的情况下还可以显示通知栏。用户可以选择允许没有,部分或全部通知内容显示在一个安全的锁定屏幕。

Key notification alerts such asincoming calls appear in aheads-up notification—a small floating window that allowsthe user to respond or dismiss without leaving the current app.

来电提醒可以悬浮在任何隐名的投票,允许用户回复或不显示不离开当前的应用程序。

You can now addnew metadatato notifications to collect associatedcontacts (for ranking), category, and priority.

现在,您可以添加新的元数据在通知栏上,收集相关联系人(排名),类别,和优先级。

A new media notification templateprovides consistent media controls for notifications with up to 6 actionbuttons, including custom controls such as "thumbs up"—no more needfor RemoteViews!

新媒体通知模板提供了一致的媒体控制通知6个操作按钮,包括自定义控件,thumbs up”-不需要RemoteViews!


Your apps on the big screen

Android TVprovides a complete TV platform foryour app's big screen experience. Android TV is centered around a simplifiedhome screen experience that allows users to discover content easily, withpersonalized recommendations and voice search.

Android电视提供了一个完整的电视平台为您的应用程序的大屏幕上的经验。Android电视是围绕一个简化的主屏幕轻松体验,允许用户发现内容,个性化推荐和语音搜索。

With Android TV you can nowcreate big, bold experiencesfor your app or game content andsupport interactions with game controllers and other input devices. To help youbuild cinematic, 10-foot UIs for television, Android provides aleanback UI frameworkin thev17 support library.

Android电视现在可以创建大,大胆的经验为您的应用程序或游戏内容和游戏控制器和其他支持交互输入设备。帮助您构建电影,电视10英尺的UI,Android提供了aleanbackUI库,在V17api中。

TheAndroid TV Input Framework(TIF) allows TV apps to handle videostreams from sources such as HDMI inputs, TV tuners, and IPTV receivers. Italso enables live TV search and recommendations via metadata published by theTV Input and includes an HDMI-CEC Control Service to handle multiple deviceswith a single remote.

Android电视输入框架(TIF)允许电视应用程序来处理视频流等来源的HDMI输入、电视调遥控器,IPTV接收器。它还支持直播电视通过元数据搜索和推荐发表的电视输入和包括一个HDMI-CEC控制服务与单个远程处理多个设备。

The TV Input Framework provides accessto a wide variety of live TV input sources and brings them together in a singleuser interface for users to browse, view, and enjoy content. Building a TVinput service for your content can help make your content more accessible on TVdevices.

电视输入框架提供了访问各种各样的直播电视输入源和带给他们一起在一个单一的用户界面为用户浏览、视图和享受的内容。为你构建一个电视输入服务内容可以帮助让你的内容更容易在电视设备。

Document-centric apps

以文档为中心的应用程序

Android 5.0 introduces a redesignedOverview space (formerly called Recents) that’s more versatile and useful formultitasking.

Android 5.0引入了一个重新设计的概述空间(以前称为最近)更多样化的和有用的多任务。

New APIs allow you to show separateactivities in your app as individual documents alongside other recent screens.

新的api允许显示分离的Activity app上,作为单独的文档在其他屏幕旁边。


You can take advantage of concurrentdocuments to provide users instant access to more of your content or services.For example, you might use concurrent documents to represent files in aproductivity app, player matches in a game, or chats in a messaging app.

您可以利用并行文件提供用户即时访问更多的内容或服务。例如,写文档,玩家在游戏比赛,或聊天消息传递应用程序。

Advancedconnectivity

更好的连通性

Android 5.0 adds new APIs that allowapps to perform concurrent operations withBluetooth Low Energy(BLE), allowing both scanning (centralmode) and advertising (peripheral mode).

Android 5.0添加了新的api允许应用程序执行的并发操作与蓝牙低能量(BLE),允许扫描(中央模式)和广告(外围模式)

Newmulti-networkingfeatures allow apps to query availablenetworks for available features such as whether they are Wi-Fi, cellular,metered, or provide certain network features. Then the app can request aconnection and respond to connectivity loss or other network changes.

新的多网特性允许app查询网络状态的可用特性,比如是否wi - fi、移动电话、计量,或提供某些网络特性。然后应用程序可以请求一个连接和响应连接损失或其他网络的变化。

NFCAPIs now allow apps to register an NFCapplication ID (AID) dynamically. They can also set the preferred cardemulation service per active service and create an NDEF record containing UTF-8text data.

现在NFCapi允许应用程序动态地注册一个NFC应用程序ID(援助)。他们还可以设置每个现役首选卡模拟服务并创建一个NDEF记录包含utf- 8的文本数据。

High-performancegraphics

Support forKhronos OpenGL ES 3.1now provides games and other apps thehighest-performance 2D and 3D graphics capabilities on supported devices.

支持KhronosOpenGL ES 3.1现在提供游戏和其他应用程序的性能最高的2 d3 d图形功能支持设备。

OpenGL ES 3.1 adds compute shaders,stencil textures, accelerated visual effects, high quality ETC2/EAC texturecompression, advanced texture rendering, standardized texture size andrender-buffer formats, and more.

OpenGL ES 3.1增加了计算着色器,模板纹理,视觉效果,加快高质量ETC2 /EAC纹理压缩,先进的纹理渲染,标准化的纹理尺寸和render-buffer格式等等。

Android 5.0 also introduces theAndroid Extension Pack(AEP), a set of OpenGL ES extensionsthat give you access to features like tessellation shaders, geometry shaders,ASTC texture compression, per-sample interpolation and shading, and otheradvanced rendering capabilities. With AEP you can deliver high-performancegraphics across a range of GPUs.

Android 5.0还引入了Android扩展包(AEP),一组OpenGL ES扩展,给你访问等功能镶嵌细工着色器,几何着色器,ASTC纹理压缩,每份样本插值和阴影,和其他高级渲染功能。AEP可以提供高性能图形一系列gpu

More Powerful Audio

更强大的音频

A new audio-capture design offerslow-latency audio input. The newdesign includes: a fast capture thread that never blocks except during a read;fast track capture clients at native sample rate, channel count, and bit depth;and normal capture clients offer resampling, up/down channel mix, and up/downbit depth.

一个新的音频捕捉设计提供低延迟音频输入。新的设计包括:快速获取线程从不阻塞读期间除外;快速跟踪捕捉客户本地采样率,通道数,和位深度;和正常捕获客户提供重采样,上下通道混合,和上/下位深度。

Multi-channelaudio stream mixingallows professional audio apps to mixup to eight channels including 5.1 and 7.1 channels.

多通道音频流混合允许专业音响应用混合8频道包括5.17.1通道。

Apps can expose their media contentandbrowse mediafrom other apps, then requestplayback. Content is exposed through a queryable interface and does not need toreside on the device.

应用程序可以公开他们的媒体内容和浏览媒体从其他应用程序,然后请求回放。内容是通过可查询的接口,不需要公开驻留在设备上。

Apps have finer-grain control overtext-to-speech synthesisthrough voice profiles that areassociated with specific locales, quality and latency rating. New APIs alsoimprove support for synthesis error checking, network synthesis, languagediscovery, and network fallback.

应用细粒度控制通过语音资料文本-语音合成,与特定的地区,质量和延迟评级。新的api还改善支持合成错误检查,网络合成语言发现,网络故障恢复。

Android now includes support forstandardUSB audioperipherals, allowing users to connectUSB headsets, speakers, microphones, or other high performance digitalperipherals. Android 5.0 also adds support forOpusaudiocodecs.

Android现在包括支持标准USB音频设备,允许用户连接USB耳机,扬声器,麦克风,或其他高性能数码外设。Android 5.0还增加了对作品的支持音频编解码器。

NewMediaSessionAPIs for controllingmedia playback now make it easier to provide consistent media controls acrossscreens and other controllers.

现在新的MediaSessionapi控制媒体播放更容易提供一致的媒体控制屏幕和其他控制器。

Enhanced Camera& Video

增强的摄像头和视频

Android 5.0 introducesall new camera APIsthat let you capture raw formats suchas YUV and Bayer RAW, and control parameters such as exposure time, ISOsensitivity, and frame duration on a per-frame basis. The newfully-synchronized camera pipeline allows you to capture uncompressedfull-resolution YUV images at 30 FPS on supported devices.

Android 5.0引入了新的摄像头api允许您捕获原始格式如YUVBayer RAW,和控制曝光时间等参数,ISO敏感性,和帧持续时间在每帧的基础上。新的完全同步相机管道允许您捕获未压缩的完全解决YUV图像在30帧支持设备。

Along with images, you can also capturemetadata like noise models and optical information from the camera.

随着图像,还可以获取元数据从相机噪声模型和光学等信息。

Apps sending video streams over thenetwork can now take advantage of H.265High Efficiency Video Coding(HEVC)foroptimized encoding and decoding of video data.

应用程序发送视频流在网络上现在可以利用H265高效视频编码(HEVC)优化的编码和解码的视频数据。

Android 5.0 also adds support formultimedia tunnelingto provide the best experience forultra-high definition (4K) content and the ability to play compressed audio andvideo data together.

Android 5.0还增加了支持多媒体隧道为超高定义提供最好的体验(4 k)内容和能力一起打压缩音频和视频数据。

Screen capturingand sharing

屏幕捕捉和分享

Android 5.0 lets you add screencapturing and screen sharing capabilities to your app.

With user permission, you can capturenon-secure video from the display and deliver it over the network if youchoose.

Android 5.0允许您将屏幕捕捉和屏幕共享功能添加到您的应用程序。
通过用户权限,您可以捕获从显示没有安全限制的视频,然后你可以选择上传到网络上。

New types ofsensors

新类型的传感器

In Android 5.0, a newtilt detectorsensor helps improve activityrecognition on supported devices, and aheart rate sensorreports the heart rate of the person touchingthe device.

Android5.0,一个新的倾斜探测器传感器支持帮助改善活动识别设备,和一个人的心率心率传感器报告触摸设备。

Newinteraction compositesensorsare nowavailable to detect special interactions such as awake upgesture,apick upgesture, and aglancegesture.

现在可以使用新的交互复合传感器检测等特殊交互手势醒来,挑选upgesture,看手势。

Chromium WebView

The initial release for Android 5.0includes a version of Chromium forWebViewbased on the Chromium M37 release,adding support forWebRTC,WebAudio, andWebGL.

最初版本的Android 5.0包括一个版本的WebView基于Chromium M37版本,添加支持WebRTCWebAudio,WebGL

Although WebView has been based onChromium since Android 4.4, the Chromium layer is now updatable from GooglePlay.

尽管WebView基于Android4.4以来铬, Chromium从谷歌现在是可更新的。

As new versions of Chromium becomeavailable, users can update from Google Play to ensure they get the latestenhancements and bug fixes for WebView, providing the latest web APIs and bugfixes for apps using WebView on Android 5.0 and higher.

Chromium的新版本可用时,用户可以从谷歌更新游戏,以确保他们获得最新的增强和WebViewbug修复,为应用程序提供最新的web apibug修复Android5.0和更高版本上使用WebView

Accessibility &Input

可访问性和输入

New accessibility APIs can retrievedetailed information about the properties of windows on the screen that sightedusers can interact with and define standard or customized input actions for UIelements.

新易访问性api可以检索有关的属性的详细信息窗口在屏幕上,用户可以发现相互作用,定义标准或定制的UI元素的输入操作。

New Input method editor (IME) APIsenable faster switching to other IMEs directly from the input method.

新的输入法编辑器(IME)api使速度切换到其他IME直接从输入方法。

Tools for buildingbattery-efficient apps

构建电池-效率应用工具

Newjob schedulingAPIs allow you optimize battery lifeby deferring jobs for the system to run at a later time or under specifiedconditions, such as when the device is charging or connected to Wi-Fi.

新工作调度api允许您优化电池寿命通过延迟工作系统运行在稍后的时间或在指定的条件下,比如当设备充电或wi- fi连接。

A newdumpsysbatterystatscommandgeneratesbattery usage statisticsthat you can use to understandsystem-wide power use and understand the impact of your app on the devicebattery. You can look at a history of power events, approximate power use perUID and system component, and more.

一个新的dumpsysbatterystats命令生成电池使用统计数据,您可以使用它们来理解整个系统的电力使用和理解你的应用程序在设备上电池的影响,可以查看电池的历史事件。接近每个uid和系统组件使用的电量。以及更多


Battery Historian is anew tool to convert the statistics fromdumpsysbatterystatsinto avisualization for battery-related debugging. You can find it athttps://github.com/google/battery-historian.

电池历史图是一种新的工具来将数据从dumpsysbatterystats变成和电池有关的可视化调试。你可以在https://github.com/google/battery-historian上找到它。



更多相关文章

  1. 在Android平台上开发移动应用程序(毕业设计_外文翻译)
  2. Android平板电脑上的APP应用程序设计须知
  3. 使用html,javascript,css,phonegap创建开发android应用程序
  4. Android的架构与Android应用程序启动流程
  5. 从Android浏览器(并不是Appliaction里面的webkit)打开应用程序/

随机推荐

  1. 数说:这只程序员组建的乐队为何能进HOT5?
  2. 要成为一个专业的爬虫大佬,你还需要了解这
  3. 动画:深入浅出从根上理解 HTTP 缓存机制及
  4. 爬取3万景点,分析十一哪里人从众从人?
  5. 不使用 if-elif 语句,如何优雅地判断某个
  6. Python 3.9 性能优化:更快的 list()、dict
  7. Python小技巧:如何批量更新已安装的库?
  8. 大学历经几十个落地项目,小鹿教科书式经验
  9. 扫盲篇:实现一个简易的 webpack!
  10. Python 为什么不支持 i++ 自增语法,不提供