Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
欢迎使用Android Now,这是您持续不断的有关Android开发领域新事物和着名指南。
视频和播客形式的NiA21 (NiA21 in Video and Podcast Form)
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Android中的 This Now也以视频和播客形式提供。 内容相同,但所需的阅读量更少。 仍然可以使用文章版本(请继续阅读!)链接到所涵盖的所有内容。
视频 (Video)
播客 (Podcast)
Click on the link below, or just subscribe to the podcast in your favorite client app.
单击下面的链接,或只订阅您喜欢的客户端应用程序中的播客。
Android的11周 (11 Weeks of Android)
We are continuing 11 Weeks of Android with new topics every week. Since the last Now in Android episode, we finished off Machine Learning, spent a week on Privacy & Security, and are now in the midst of Android 11 Compatibility. Here’s how to find out more about each of these topics:
我们将继续进行11周的Android活动 ,每周发布新主题。 从上一集Now in Android剧集开始 ,我们结束了机器学习,花了一周的时间在隐私和安全性上,并且目前处于Android 11兼容性之中。 以下是有关这些主题的更多信息:
第二周:机器学习 (Week 2: Machine Learning)
The week kicked off with the announcement about the winners of the ML-focused Android Developer Challenge. This was followed by new announcements from ML Kit (support for custom classifier and a new early access program), TensorFlow Hub (new mobile-optimized models), Android Studio ML binding, multiple new codelabs, videos, and articles.
一周开始时,宣布了以ML为重点的Android开发人员挑战赛的获奖者 。 随后是ML Kit(支持自定义分类器和新的早期访问程序),TensorFlow Hub(新的针对移动设备优化的模型),Android Studio ML绑定,多个新的代码实验室,视频和文章的新公告。
So much [machine] learning!
这么多[机器]学习!
Check out the blog posted at the end week for a summary of all of the content and information:
请查看下周发布的博客 ,以获取所有内容和信息的摘要:
Also, check out the ML week video playlist.
另外,请查看ML周视频播放列表 。
第三周:隐私与安全 (Week 3: Privacy & Security)
Week three brought content on platform changes aimed at protecting user privacy as well as information on what we’ve been doing to make the platform more secure. For privacy, there were articles and videos on some of the important behavior changes in Android 11, such as one-time permissions, background location, scoped storage, and auto-reset permissions. On the security front, the team posted content on what they’ve been up to in securing the platform, as well as features for developers, like biometric APIs, to make apps more secure.
第三周介绍了旨在保护用户隐私的平台更改内容,以及有关我们为使平台更安全所做的工作的信息。 为了保护隐私,有文章和视频介绍了Android 11中的一些重要行为更改,例如一次性权限,背景位置,作用域存储和自动重置权限。 在安全方面,该团队发布了有关如何保护平台的内容,以及生物识别API等开发人员的功能,以使应用程序更安全。
First, check out the introduction blog:
首先,查看介绍博客:
Also be sure to check out the video playlist for the week.
另外,请务必查看本周的视频播放列表 。
Finally, look at the privacy and security items linked in the Articles & Codelabs section below.
最后,查看下面的“文章和代码实验室”部分中链接的隐私和安全项。
第四周:Android 11兼容性 (Week 4: Android 11 Compatibility)
This week is all about how to make sure that your apps are compatible with changes in the latest Android release.
本周的主题是如何确保您的应用与最新的Android版本中的更改兼容。
There will be more compatibility content coming out during the week. Follow @AndroidDev on Twitter to find out as things are posted. In the meantime, you can start with this blog to kick it off:
一周中将会有更多的兼容性内容发布。 在Twitter上关注@AndroidDev ,以了解发布的内容。 同时,您可以从此博客开始:
Next week: Languages.
下周: 语言 。
问我[以及许多其他人]! (Ask Me [and Many Others] Anything!)
One of the things we’re doing for the 11 Weeks of Android is hosting a series of Reddit AMAs. The first of these happens this week, on Thursday July 9th. This AMA is focused on the Android platform. You can ask people from the platform team technical questions on changes in the Android 11 release (and as a bonus, we will try to answer those questions).
我们为Android的11周所做的一件事情就是托管一系列Reddit AMA。 其中的第一次发生在本周 ,即7月9日,星期四。 该AMA专注于Android平台。 您可以向平台小组的人员询问有关Android 11版本变化的技术问题(此外,我们将尝试回答这些问题)。
Depending on when you are reading this article (or watching/listening to the Now in Android video or podcast), the AMA might already be done. But you can check out your questions and our answers at the same link to catch up to the conversation we had.
根据您阅读本文的时间(或观看/收听Android 视频或Podcast中的Now), AMA可能已经完成。 但是您可以在同一链接上查看您的问题和我们的答案,以跟上我们的对话。
Android 11聚会 (Android 11 Meetups)
The online meetups that I talked about last time have continued apace, with events happening all over the world. Check out the Android 11 Meetups site to find one happening near you.
我上次谈论的在线聚会一直在Swift进行,世界各地都在发生各种事件。 前往Android 11 Meetups网站 ,看看附近有没有发生。
AndroidX (AndroidX)
There were several AndroidX libraries released in the last couple of weeks (as usual).
在过去的几周中(与往常一样) 发布了几个AndroidX库 。
New stable releases include:
新的稳定版本包括:
CustomView 1.1.0: Added new
Openable
interface, implemented by DrawerLayout 1.1.0 and and SlidingPaneLayout 1.1.0 and which is used by Navigation 2.3.0.CustomView 1.1.0 :添加了新的
Openable
接口,由DrawerLayout 1.1.0和SlidingPaneLayout 1.1.0实现 ,并由Navigation 2.3.0使用 。DrawerLayout 1.1.0: Adds better support for handling gesture navigation insets, and now implements the new
Openable
interface in CustomView 1.1.0.DrawerLayout 1.1.0 :添加了对处理手势导航插图的更好支持,现在在CustomView 1.1.0中实现了新的
Openable
接口。Emoji 1.1.0: This emoji font now includes Emoji 12 and 12.1.
Navigation 2.3.0: This version integrates the Dynamic Feature Module capability (which allows navigation to modules that are not present, which will then be automatically downloaded and installed). Other features in this release include returning a result to the previous destination in the back stack, improved testing capability with the navigation-testing artifact,
NavigationUI
support for the newOpenable
interface (whichDrawerLayout
andSlidingPaneLayout
now implement), and increased support for deep links.导航2.3.0 :此版本集成了动态功能模块功能(该功能允许导航到不存在的模块,然后将自动下载并安装)。 此版本中的其他功能包括:将结果返回到后退堆栈中的先前目标,通过导航测试工件改善的测试功能,对新的
Openable
接口(现在实现DrawerLayout
和SlidingPaneLayout
NavigationUI
支持)以及对深层链接的增强支持。SlidingPaneLayout 1.1.0: This layout now implements the new
Openable
interface in CustomView 1.1.0.SlidingPaneLayout 1.1.0 :现在,此布局在CustomView 1.1.0中实现了新的
Openable
接口。SwipeRefreshLayout 1.1.0: This layout now implements
NestedScrollingChild3
andNestedScrollingParent3
.SwipeRefreshLayout 1.1.0 :现在,此布局实现
NestedScrollingChild3
和NestedScrollingParent3
。
文章,视频和代码 (Articles, Videos & Code)
There were several articles published, including a few specifically for Privacy & Security week.
发表了几篇文章,其中包括一些专门针对“隐私与安全性”周的文章。
艰难的选择 (Hard Choices)
The security team published System Hardening in Android 11, which covers some of the recent developments in memory allocation robustness and debugging (including Android 11’s GWP-ASAN, which I mentioned way back in Now in Android #17), along with other features which help make the Android platform more secure.
安全团队在Android 11中发布了System Hardening ,其中涵盖了内存分配健壮性和调试方面的一些最新进展(包括Android 11的GWP-ASAN(我在Android#17中的“ Now”中曾提到过))以及其他有助于开发的功能。使Android平台更安全。
存储常见问题 (Storage FAQ)
One of the larger behavior changes to the platform in the last couple of releases is in the area of scoped storage, where we introduced new APIs, permissions, and restrictions to further protect user data. nandana published an FAQ to help answer some of the common questions that developers have.
在最近的两个发行版中,对平台进行的较大的行为更改之一是在作用域存储领域,我们在其中引入了新的API,权限和限制以进一步保护用户数据。 nandana发布了一个常见问题解答,以帮助回答开发人员遇到的一些常见问题。
包装可见性 (Package Visibility)
Yacine Rezgui published an article which talks about the new behavior in Android 11 limiting the access that apps have to information about other apps installed on a device.
Yacine Rezgui发表了一篇文章,讨论了Android 11中的新行为,该行为限制了应用程序对设备上安装的其他应用程序的信息的访问权限。
为什么我的应用程序会这样做? (Why Is My App Doing That?)
Sara N-Marandi published an article which discusses a couple of new APIs in Android 11 that should help developers figure out more about what their application is doing and why. Data Access Auditing makes it easier for applications to discover when and why their apps are asking for data that requires user permission. And Process Exit Reasons helps developers (and crash reporting services) determine why an app has crashed on user devices in the real world, to help chase down fixes for those problems.
Sara N-Marandi发表了一篇文章,讨论了Android 11中的几个新API,这些API应该可以帮助开发人员弄清楚他们的应用程序在做什么以及原因。 数据访问审核使应用程序更容易发现何时以及为什么其应用程序在请求需要用户许可的数据。 流程退出原因可帮助开发人员(和崩溃报告服务)确定应用程序在现实世界中的用户设备上崩溃的原因,以帮助解决这些问题的修补程序。
打那些账单 (Playing Those Bills)
I’m sure that we all write code just for the sheer joy of it, right? But sometimes we need to actually make money from the applications we write. That’s where Google Play Billing comes in.
我确定我们都是为了纯粹的喜悦而编写代码,对吗? 但是有时候我们实际上需要从编写的应用程序中赚钱。 那就是Google Play帐单的来源。
One of the major ways that apps make money is through in-app purchases, which are enabled through Play Billing’s tools, services, and APIs.
应用赚钱的主要方式之一是通过应用内购买(通过Play Billing的工具,服务和API启用)。
Caren Chang published Part 1 in a series of articles to help you get started. This first installment gives an introduction to Play Billing, including adding items to your Google Play Console and querying those items using Play Billing APIs.
Caren Chang在一系列文章中发布了第1部分,以帮助您入门。 第一部分介绍Play Billing,包括向Google Play控制台添加项目以及使用Play Billing API查询这些项目。
Android 11问答 (Android 11 Q&A)
Daniel Galpin and Fred Chung hung out online with India developers, answering questions about Android 11… and Android development in general.
Daniel Galpin和Fred Chung与印度开发人员进行了在线交流,回答了有关Android 11…和总体Android开发的问题。
生物识别码实验室 (Biometrics Codelab)
Isai Damier published a new codelab showing how to log in to your app using biometric capabilities of the device and the AndroidX Biometric library.
Isai Damier发布了一个新的代码实验室,展示了如何使用设备的生物识别功能和AndroidX Biometric库登录您的应用程序。
亚行播客节目 (ADB Podcast Episodes)
![Image for post](https://miro.medium.com/max/9999/0*0k3K0NfJ7iET1-gB.png)
There’s been another episode of Android Developers Backstage posted since the last Now in Android. Check it out at the links below, or in your favorite podcast client.
自上次Android版Now发布以来,又发布了Android Developers Backstage一集。 在下面的链接或您喜欢的播客客户端中查看。
Many of the current episodes of ADB are being planned around #11WeeksofAndroid focuses (foci? points of focus? things upon which we focus? Hmmm: how about ‘topics’), and the latest episode on Privacy was no exception:
亚行当前的许多事件都计划在#11WeeksofAndroid焦点(焦点?焦点?我们关注的事物?嗯:“主题”方面)进行计划,而关于“隐私”的最新事件也不例外:
亚行143:嘘! 私人的! (ADB 143: Shhhh! Private!)
In which Tor Norbye, Romain Guy, and I talk with Sara N-Marandi and Philip Moltmann from the Android framework team about some of the new permissions changes in Android 11. We talk about why these changes were made, how to use them correctly in your code, and how things actually work on the inside.
在其中, Tor Norbye , Romain Guy和我与Android框架团队的Sara N-Marandi和Philip Moltmann讨论了Android 11中的一些新权限更改。您的代码以及内部的实际工作方式。
接着… (Now then…)
That’s it for this time. Go learn about 11 Weeks of Android content on Machine Learning, Privacy & Security, and Compatibility! Join us for our Reddit AMA! Tune into an Android 11 Meetup near you! Check out the latest AndroidX releases! Read articles on privacy, security, and app monetization! Do a codelab on biometric login! Listen to podcast on privacy! And come back here soon for the next update from the Android developer universe.
这次就是这样。 开始学习有关机器学习 , 隐私和安全性以及兼容性的 11周Android内容! 加入我们的Reddit AMA ! 调整您附近的Android 11聚会 ! 查看最新的AndroidX版本 ! 阅读文章的隐私,安全和应用货币化 ! 做一个关于生物识别登录的代码实验室 ! 收听有关隐私的 播客 ! 并很快返回此处,以获取Android开发人员环境的下一个更新。
翻译自: https://medium.com/androiddevelopers/now-in-android-21-209e665554cb