问题标签 [power-management]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1253 浏览

android - 如何节省 Android 手机的电池寿命?

我想了解每个应用程序的电池使用百分比和 android 中的可用电池电量。

0 投票
1 回答
652 浏览

android - Android -How to run services in background when certain criteria meets how to display the notification

How can I run services in the background of a battery manager Android application?

How would I display or receive a notification when the battery is low or when certain criteria are met?

For example, for an alarm, when the current time equals the alarm time the alarm rings.

0 投票
2 回答
966 浏览

c++ - 获得即时能源消耗

我希望在 shell 或 C++ 中获得即时能源消耗

有任何想法吗 ?

谢谢

0 投票
2 回答
2367 浏览

android - 如何将android置于低功耗状态

我有一个高度数据计算密集型应用程序,它必须每 60 秒处理一次通过蓝牙接收的数据,然后在接下来的 60 秒内保持低功耗状态。我检查了 PowerManager api,但我无法使用它。有没有办法我可以完成任务?

0 投票
3 回答
4200 浏览

android - Android 调试 -> 电池耗尽

在手机上调试 Android 应用程序时,您是否注意到明显的电池消耗?

另外,大量 Log.d() 消息是否会耗尽电池电量?

0 投票
2 回答
6590 浏览

android - Android:每个应用程序的电池使用情况

无论如何在API,adb shell,......中获取每个应用程序每秒的电池使用信息吗?

0 投票
2 回答
456 浏览

ios4 - 本地或推送通知消耗更少的能量?

我想使用通知,我读过本地和推送通知基本相同,唯一的区别是推送通知是

远程通知

信息来自外部,本地通知是本地的。我还读到推送会消耗 20% 的电池使用量。我的问题是本地通知在省电方面是否更好?

谢谢

0 投票
1 回答
691 浏览

iphone - 检测到电池警告显示 iPhone

有没有办法检测是否显示电池电量警告?我向 UIApplicationDidBecomeActiveNotification 注册了一个通知,我想知道它是否是由于电池电量不足警告而触发的,因此我可以以不同的方式处理它。

0 投票
1 回答
1221 浏览

android - 防止电池“损坏”

我目前正在使用 Android SDK 进行开发,并且因为我正在构建基于相机的应用程序,所以我无法使用模拟器对其进行测试。

这意味着以下情况经常发生

  • 我将手机连接到 USB 电池电量为 50%
  • 我在充满电之前断开它,例如 80%
  • 我要走了,我想带我的手机
  • 我回来并再次连接等等......

我读到锂离子电池不会受到记忆效应的影响,但另一方面,我也读到应该等到电池充满电后再将其与 USB 断开连接。

所以,我想知道我现在使用手机进行调试的方式是否会损坏或缩短电池寿命

任何建议表示赞赏

0 投票
3 回答
195 浏览

android - 在 Android 应用上呈现和频繁更改图像的有效方法?

我在一个布局中有几个 imageViews。通常,(5-10 秒)我想要更改一些图像(使用其他来源)。

由于我只是 android 的初学者,因此在能量方面,使用 imageView 对我的目的有意义吗?

有没有更有效的方法来呈现几张会经常变化的图像?

先感谢您!