android 预览_android 11开发人员预览集锦

Android 11开发者预览版带来了诸多改进,如气泡功能,使用户在多任务时能便捷地回复消息;一次性权限控制,增强用户隐私安全;专用对话部分,方便用户快速找到聊天;原生屏幕录像机,提升用户体验;还有5G支持和对外部存储的更好保护等。此外,还对相机拍摄时的静音、屏幕录制和瀑布屏管理进行了优化。
摘要由CSDN通过智能技术生成

android 预览

介绍 (Introduction)

Android 11 preview made its debut on February 19th, 2020, only for developers. Although it’s still early for Android lovers, we need to be conscious of what is happening in the market. Android 11 Developer Preview is now available on Google Pixel 4 / 4XL, Pixel 3a / 3a XL, Pixel 3 / 3 XL, and Pixel 2 / 2 XL. Developer Preview releases are early baseline builds for developers only. Because they’re not suitable for daily use by early adopters or consumers, Google had made them available by manual download and flash only.

Android 11预览版于2020年2月19日首次亮相,仅面向开发人员。 尽管对于Android爱好者来说还为时过早,但我们需要意识到市场上正在发生的事情。 Android 11 Developer Preview现在可在Google Pixel 4 / 4XL,Pixel 3a / 3a XL,Pixel 3/3 XL和Pixel 2/2 XL上使用。 开发人员预览版仅是针对开发人员的早期基准构建。 由于它们不适合早期采用者或消费者日常使用,因此Google 通过手动下载和Flash使其可用。

泡泡 (Bubbles)

This is one of my favorite sections. Everyone one of us has an idea of how the Facebook chat head works. The Bubble is a similar feature for all messaging apps. Using bubbles, anyone can reply to any messaging app without opening the application. Bubbles are a way to keep conversations in view and accessible while doing multi-tasking on their phones. For people who want to give quick replies while watching a video or while playing a game this would be a handy feature.

这是我最喜欢的部分之一。 我们每个人都对Facebook 聊天头的工作原理有所了解。 气泡是所有消息传递应用程序的类似功能。 使用气泡 ,任何人都可以打开任何消息传递应用程序而无需打开该应用程序。 气泡是在手机上执行多任务处理时保持对话可见可访问的一种方法。 对于希望在观看视频或玩游戏时快速做出答复的人来说,这将是一个方便的功能。

Though these bubbles made an appearance in Android 10 preview, they were not part of all messaging apps. Finally, Android 11 has been ready to roll out these bubbles feature so that all messaging notifications will appear on the bubble which improves the user experience. Any messaging or chat apps should use the Bubbles API on notifications to enable this bubble feature in Android 11.

尽管这些气泡已在Android 10预览版中出现,但它们并不是所有消息传递应用程序的一部分。 最后,Android 11已准备好推出这些气泡功能,以便所有消息通知都将显示在气泡上,从而改善用户体验。 任何消息传递聊天应用程序都应在通知中使用Bubbles API ,以在Android 11中启用此Bubble功能。

从通知发送图像 (Send images from notifications)

In previous versions of Android, there was an update of inline text replies from the notification panel and extending this feature, Android 11 is coming up with a new way of sending images along with text from the notification panel itself without opening the app. Insert images into notification replies would be one of the coolest features. To use this feature, our app needs to support image copy/paste, so that we can now let users insert assets directly into notification inline replies to enable richer communication as well as in the app itself. For this version, we will see image copy support in Chrome and image paste support via the Gboard clipboard.

在以前的Android版本中,通知面板中更新了内联文本答复并扩展了此功能,Android 11提出了一种新的方式,可以从通知面板本身发送图像和文本,而无需打开应用程序。 将图像插入通知回复将是最酷的功能之一。 要使用此功能,我们的应用程序需要支持图像复制/粘贴 ,以便我们现在可以让用户将资产直接插入到通知内联回复中,以实现更丰富的通信以及应用程序本身。 对于此版本,我们将在Chrome中看到图像复制支持,并通过Gboard剪贴板看到图像粘贴支持。

专用对话部分 (Dedicated conversations section)

Speaking of messages, Android 11 also brings a new “dedicated conversation section” in our notification shade. In the notification shade — users can instantly find their ongoing conversations with people in their favorite apps. With this feature, the notifications related to all chatting apps will be grouped into a separate section and shown at the top. The ideology is similar to the bubbles, both the features were to improve the conversation experience.

说到消息,Android 11在我们的通知栏还带来了一个新的“ 专用对话部分 ”。 在通知栏上-用户可以立即在他们喜欢的应用程序中找到与人的正在进行的对话。 借助此功能,与所有聊天应用程序相关的通知将分为一个单独的部分,并显示在顶部。 意识形态类似于气泡,两者的功能都是为了改善对话体验。

一次性许可 (One-time permission)

As Google tries to improve the security measures since the start of the Marshmallow version where it first introduced the permission concept for an app to access sensitive data, and it is releasing something related to this permission each time it's coming with a new version. As a part of it in Android 10, we’ve seen new options in the permissions dialog like “Allow only while using the app”. In Android 11, we have even more control over permissions with the new option “Only this time”.

自从棉花糖版本问世以来,Google一直在努力改善安全措施,最初它引入了应用程序访问敏感数据的权限概念,并且每次发布新版本时都会发布与此权限相关的内容。 作为Android 10中的一部分,我们在权限对话框中看到了新选项,例如“ 仅在使用应用程序时允许 ”。 在Android 11中,通过新选项“ 仅此一次 ”,我们可以更好地控制权限。

Image for post

From the developer's perspective in Android 11, whenever your app requests permission related to location, microphone, or camera, the user-facing permissions dialog contains an option called Only this time, as shown in the above image. If the user selects this option in the dialog, your app is granted temporary one-time permission. Your app can access the related data only while one of the following remains true:

从Android 11中的开发人员的角度来看,每当您的应用请求与位置,麦克风或摄像头相关的权限时,面向用户的权限对话框都会包含一个名为Only this time的选项,如上图所示。 如果用户在对话框中选择此选项,则将为您的应用授予临时的一次性权限 。 您的应用只能在以下情况之一成立的情况下访问相关数据:

  • Your app’s activity has been visible ever since the user granted one-time permission.

    自用户授予一次性权限以来,您的应用程序活动就一直可见

  • Your app was visible when the user granted the permission and has been running a foreground service ever since then. As long as the foreground service keeps running, your app will retain the permission even if the user moves your app to the background.

    当用户授予许可并且此后一直在运行前台服务时,您的应用程序便可见 。 只要前台服务保持运行,即使用户将您的应用程序移至后台,您的应用程序仍将保留该权限。

If neither of the condition is true, we need to ask the user for permission again, regardless of the target SDK version. Check out more at Permissions updates in Android 11.

如果两个条件都不成立,则无论目标SDK版本如何,我们都需要再次询问用户。 在Android 11中的权限更新中查看更多信息

范围存储 (Scoped storage)

Android 11 further enhances the platform, giving better protection to the app and user data on external storage. As part of this effort, the platform introduces further improvements to ease the transition to scoped storage.

Android 11进一步增强了平台,为外部存储上的应用程序和用户数据提供了更好的保护。 作为这项工作的一部分,该平台引入了进一步的改进,以简化向范围存储的过渡。

This preview release happened last year has bought many options, one of the features is opt-in raw file path access for media, batch edit operations for media, and an updated UI for the Storage Access Framework. This was one of the features to improve security measures for end-users but lots of work for developers.

去年发生的此预览版已经购买了许多选项,其中一项功能是对介质的选择加入原始文件路径访问,对介质的批处理编辑操作以及针对Storage Access Framework的更新的UI。 这是为最终用户改进安全措施的功能之一,但对开发人员来说却需要大量工作。

In upcoming releases of the Developer Preview, look for additional enhancements to file access, as well as updated policies regarding file management and photo galleries. Check out more on Storage updates

在即将发布的Developer Preview中,寻找文件访问的其他增强功能以​​及有关文件管理和照片库的更新策略。 查看有关存储更新的更多信息

相机拍摄时静音 (Muting during camera capture)

Many of us get distracted or feel disturbed if we get notifications or calls while capturing special moments. But apps can now use new APIs to mute vibration from ringtones, alarms or notifications while we are using the camera app. Now we can enjoy the photoshoots or video captures without any interruption.

如果我们在捕捉特殊时刻的同时收到通知或电话,我们很多人会分心或感到不安。 但是,当我们使用相机的应用程序的应用程序现在可以使用新的API,从铃声,报警或通知静音震动。 现在,我们可以不受干扰地享受照片拍摄或视频拍摄。

本机ScreenRecoder (Native ScreenRecoder)

Though the screen recorder is one of the key features everyone was interested in, until Android Q there was nothing about it from Google. But with Android 10 they released an initial screen recorder but it was not completely out. So with Android 11, we shall hope this native screen recorder comes out with native UI. We can find the option of a screen recorder in the quick settings panel.

尽管屏幕录像机是每个人都感兴趣的关键功能之一,但是直到Android Q,Google对此一无所知。 但是在Android 10上,他们发布了最初的屏幕录像机,但并没有完全淘汰。 因此,对于Android 11,我们希望该本地屏幕录像机带有本地UI。 我们可以在快速设置面板中找到屏幕录像机的选项。

5G支持 (5G Support)

5G first started rolling out for people to use in 2019. 5G brings consistently faster speeds and lower latency to more users around the world. With 5G we can extend your Wi-Fi app experiences — such as streaming 4K video or loading higher-res game assets — to mobile users, or we can build new experiences designed specifically for 5G. Android 10 supported mobiles can connect to 5G however Google has made some improvements in this area.

5G最早在2019年开始向人们推广。5G为世界各地更多的用户带来了更快的速度和更低的延迟。 借助5G,我们可以将您的Wi-Fi应用体验(例如流4K视频或加载更高分辨率的游戏资产)扩展到移动用户,或者我们可以构建专为5G设计的新体验。 支持Android 10的手机可以连接到5G,但是Google在此方面做了一些改进。

  • Dynamic meteredness API — with this API we can check whether the connection is unmetered, and if so, offer higher resolution or quality that may use more data. Google has extended the API to include cellular networks so that we can identify users whose carriers are offering truly unmetered data while connected to the carrier’s 5G network.

    动态计量API-使用此API,我们可以检查连接是否未计量 ,如果是,则提供更高的分辨率或质量,从而可能使用更多数据 。 Google已将API扩展为包括蜂窝网络,以便我们可以识别运营商在连接到运营商的5G网络时提供真正未计量数据的用户。

  • Bandwidth estimator API — Google has updated this API for 5G to make it easier to check the downstream/upstream bandwidth, without needing to poll the network or compute your own estimate. If the modem doesn’t provide support, it gives a default estimation based on the current connection.

    带宽估算器API -Google已更新了适用于5G的API,以便更轻松地检查下行/上行带宽 ,而无需轮询网络或计算您自己的估算值。 如果调制解调器不提供支持,它将根据当前连接给出默认估计。

针Kong和瀑布滤网 (Pinhole and waterfall screens)

Device manufacturers are continuously making efforts to craft mobile in an outstanding way. We have experienced mobile from complete bezel to mobiles that are bezel-less. Now it is a new era where people look for a different model like foldable and waterfall screens. Waterfall Display is when the side edges of a display are curved to such a degree that you can’t see any side edge bezel — it’s as if there’s a cliff edge and the screen is flooding off it. As there are already phone in the market now, Google is providing some APIs to let us optimize the apps.

设备制造商正在不断努力以出色的方式打造手机。 从完整的边框到无边框的手机,我们都拥有丰富的经验 现在,这是一个新时代,人们正在寻找一种不同的模型,例如可折叠屏风和瀑布屏风。 瀑布显示是指显示器的侧边缘弯曲到一定程度,以至于您看不到任何侧边缘挡板-好像有一个悬崖边缘并且屏幕正在泛滥。 由于现在市场上已经有手机,因此Google提供了一些API来让我们优化应用程序。

Apps can manage pinhole screens and waterfall screens using the existing display cutout APIs. If we want, a new API lets your app use the entire waterfall screen including the edges, with insets to help us manage interaction near the edges.

应用程序可以使用现有的显示抠图API管理针Kong屏幕和瀑布屏幕。 如果需要,可以使用新的API,让您的应用使用整个瀑布屏幕(包括edges)以及带有插图的插图,以帮助我们管理edges附近的交互。

That’s all for now if I had missed any of your favorite features please comment.

现在就这些,如果我错过了您最喜欢的功能,请发表评论。

Please let me know your suggestions and comments.

请让我知道您的建议和意见。

You can find me on Medium and LinkedIn

您可以在MediumLinkedIn上找到我

Thanks for reading

谢谢阅读

翻译自: https://levelup.gitconnected.com/android-11-developer-preview-highlights-5b56c5b1c3cb

android 预览

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值