android oreo

Google has done a lot to better manage Android’s background resource usage over the last few updates, and Oreo brings another enhancement to the table with Background Execution Limits. Simply, this limits what an app can do when running in the background—both in resources used and broadcasts requested.

在最近的几次更新中,Google做了很多工作来更好地管理Android的后台资源使用情况,而Oreo通过“ 后台执行限制”对表格进行了另一项增强。 简而言之,这限制了应用程序在后台运行时的操作能力-既使用了资源,又请求了广播。

Background Execution Limits are designed to be automatic in Android Oreo—you don’t have to do anything to take advantage of them…as long as your apps were developed with Android 8.0 Oreo in mind, and coded to take advantage of this feature.

后台执行限制被设计为在Android Oreo中是自动的-您无需做任何事情即可利用它们……只要您的应用程序是在考虑到Android 8.0 Oreo的情况下开发的,并经过编码即可利用此功能。

Sadly, not every developer goes through the trouble to add that code. And if any of the apps you use are old and no longer in development, well, they won’t automatically limit themselves either. The good news is that you can essentially “force” this feature to work with older apps thanks to a toggle provided in Oreo.

可悲的是,并不是每个开发人员都会遇到麻烦添加代码。 而且,如果您使用的任何应用程序都是旧的并且不再开发中,那么它们也不会自动限制自己。 好消息是,由于Oreo中提供了切换功能,您实际上可以“强制”该功能与较旧的应用程序一起使用。

Note that this is different than Android’s stock Battery Optimization feature—these two things really work together, but Background Execution Limits is designed to better control resources (like RAM and CPU cycles) for an improved overall experience, especially as apps start to “pile up” in the background.

请注意,这与Android的常规电池优化功能不同-两者确实可以协同工作,但是后台执行限制旨在更好地控制资源(如RAM和CPU周期),从而改善整体体验,尤其是当应用开始“堆积”时”在后台。

如何在未优化的Android应用上强加背景限制 (How to Force Background Limitations on Non-Optimized Android Apps)

First off, if you want to force these restrictions on apps that haven’t yet been updated for Android Oreo, you’ll need to do it for each app. So first, open the notification shade, then tap the gear icon to open the Settings menu.

首先,如果您想对尚未针对Android Oreo更新的应用程序强加这些限制,则需要针对每个应用程序执行此操作。 因此,首先,打开通知栏,然后点击齿轮图标以打开“设置”菜单。

From there, tap on Apps & Notifications.

在此处,点击“应用程序和通知”。

Choose “App info” from this menu, which will open the list of all currently-installed apps.

从此菜单中选择“应用程序信息”,这将打开所有当前安装的应用程序的列表。

Pick an app from this menu—any app will do to start off with. From there, tap the “Battery” option.

从此菜单中选择一个应用程序-任何应用程序都可以从此开始。 从那里,点击“电池”选项。

If the app is already optimized for Android 8.0, you’ll only have one option in the “Manage battery usage” section, which reads Battery Optimization. Like so:

如果该应用程序已经针对Android 8.0进行了优化,则“管理电池使用情况”部分将只有一个选项,该部分显示“电池优化”。 像这样:

If the app isn’t optimized for Oreo, you’ll have a second option: Background Activity. By default, this toggle is set to “On”, which allows the app to run in the background when you’re not using it.

如果该应用未针对Oreo进行优化,则您将有第二个选择:“后台活动”。 默认情况下,此开关设置为“开”,这使该应用在不使用时可以在后台运行。

Go ahead and slide that toggle to the off position to limit its background activity, putting it more in line with default Oreo apps.

继续并滑动到关闭位置以限制其背景活动,使其与默认的Oreo应用更加一致。

While I can’t speak for how dramatically this will improve battery life, I’m certain it won’t hurt. Also, doing this to multiple applications should provide a noticeable bump in system performance, because less going on in the background means more power for anything in the foreground. I’m into that.

虽然我不能说这将极大地改善电池寿命,但我确定它不会有伤害 。 此外,对多个应用程序执行此操作应该会显着提高系统性能,因为在后台进行的操作较少,意味着对前台的任何操作都具有更大的功能。 我很喜欢

翻译自: https://www.howtogeek.com/324566/how-to-limit-background-activity-for-apps-in-android-oreo/

android oreo

更多相关文章

  1. android获取系统环境变量
  2. 安卓如何限制横屏和竖屏
  3. Android学习笔记之mainfest文件中android属性
  4. Android学习笔记之mainfest文件中android属性
  5. Android学习笔记之mainfest文件中android属性
  6. Android官方入门文档[5]建立操作栏
  7. ibmdeveloper上的android 的文章
  8. android 横竖屏锁定
  9. Android(安卓)Studio 3.0开始android Device Monitor弃用

随机推荐

  1. 基于Android的淘宝网手机客户端开发见解(
  2. Android(安卓)O 与 Android(安卓)P
  3. Android锁屏与解屏相关代码分析
  4. Android 开发者从0到1发布一个微信小程序
  5. Android搜索控件的基本使用方法
  6. 开博第一日
  7. Android结合Retrofit实现统一加解密处理(G
  8. 深入探索Android稳定性优化
  9. Android自定义视图
  10. Android与WebView的同步和异步访问机制