android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第1张图片

android oreo

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第2张图片

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更新的应用程序强加这些限制,则需要针对每个应用程序执行此操作。 因此,首先,打开通知栏,然后点击齿轮图标以打开“设置”菜单。

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第3张图片

From there, tap on Apps & Notifications.

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

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第4张图片

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

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

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第5张图片

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

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

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第6张图片

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进行了优化,则“管理电池使用情况”部分将只有一个选项,该部分显示“电池优化”。 像这样:

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第7张图片

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进行优化,则您将有第二个选择:“后台活动”。 默认情况下,此开关设置为“开”,这使该应用在不使用时可以在后台运行。

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第8张图片

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应用更加一致。

android oreo_如何限制Android Oreo中应用程序的后台活动以节省电池寿命_第9张图片

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

你可能感兴趣的:(java,python,android,linux,vue)