1

我的任务是支持一个已经在生产中部署但不正确地支持销毁和重新创建活动的应用程序。当用户的设备默认配置为始终销毁不在前台的活动时,这一点最为明显。

这个应用程序没有明确设置值;它使用全局默认值。

我的问题是:启用此设置的常见情况是什么?例如:

  1. 设备制造商自定义 Android,以便可以从默认设备设置活动中切换此设置。

  2. 自定义 Android 版本(例如 Cyanogen)已配置为默认“开启”。

  3. 用户下载某种“电动工具”,允许他调整默认系统设置。

这些可能性有多大?还有其他我错过的常见案例吗?

4

2 回答 2

2

Device manufacturer customizes Android such that this setting can be toggled from within the default device settings activity.

There is no customization needed. This is available in the Developer Options area.

Custom Android build (e.g. Cyanogen) has been configured to have it "on" by default.

One hopes that nobody does this.

User downloads some sort of "power tool" allowing him to tweak the default system settings.

Again, this is part of Android, so no "power tool" is needed.

How likely are each of these?

Not very. I'd be surprised if it is more than one device in 10,000. If your app cannot handle this setting (and I suspect that few apps do), and you are worried about it, feel free to check the setting and display something to the user to have them go revert the setting.

于 2013-04-16T17:26:19.850 回答
0

如今,几乎所有设备的设置中都有它——所有 nexus 设备和高端三星设备。用户不需要电动工具即可在任何这些设备中打开它。

于 2013-04-16T17:24:08.937 回答