-2

To save energy of my mobile device my app should turn off animation of system operation android. How can I turn off animation of system operation android programmatically? Does there exist some broadcast receiver for listen this action?

I mean that if you want more performance in your android you can go settings ("Menu-Settings-Display-Animation-NO ANIMATIONS")... I want know how do this programmatically...

4

1 回答 1

1

虽然我似乎记得旧版本的 Android 中可能有此选项,但此选项不会出现在较新的版本中。例如,我的 Galaxy Nexus 没有此选项。

关于以编程方式控制窗口动画,我看到的唯一选项(例如,ANIMATOR_DURATION_SCALE)现在Settings.Global是 Android 4.2 版本,普通 SDK 应用程序无法修改。您可能能够在早期版本的 Android 中控制它们,但不清楚哪些设置直接转换为您的设置选项。

此外,如果您有证据表明更改这些值将实质上“节省 [您的] 移动设备的能源”,请发布。

于 2013-04-29T19:25:17.097 回答