Android应用程序和能源效率 [英] Android App programming and energy-efficiency

查看:131
本文介绍了Android应用程序和能源效率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自动取款机,我通过开源搜索/关源的 Android应用程序标识特定的关注(code块,code模式)的崛起能源问题,因为我的兴趣和研究的一部分。

ATM, I'm searching through open source/close source android applications to identify particular concerns (code blocks, code patterns) that rise energy issue as my interests and part of studies.

例如,code,它


  • 打开GPS超过必要,或更长的时间

  • 刷新显示器
    不必要的。

  • turning on GPS for longer than necessary , or
  • refreshing display unnecessarily.

因此​​,


  • 有什么建议,我怎么可以去寻找这些问题和可能的解决方法?

  • Is there any suggestion how I can go about searching those concerns and possible fixes?

任何专业的Andr​​oid程序员可以建议与例如code节省能源的一些常见做法?

any professional Android programmers could suggest some common practices that saves energy with example code?

在此先感谢,对不起,问一个有点开放式的问题。

Thanks in advance, sorry for asking an a bit open-ended question.

推荐答案

其实,Android开发上写的性能设计,这样你可以通过不运行CPU哗啦啦所有的时间,而不是运行的硬件这么多节省电池寿命。但基本要点是,以尽量减少

Actually the Android developers wrote a great guide on Designing for Performance so that you could save battery life by not running the CPU full blast all of the time and not running the hardware so much. But the basic gist is to minimise:


  • CPU使用时间(不保持它坐在100%的使用率和使用报警管理器,如果这是你所需要的)

  • 硬件使用(不会坐在那里轮询GPS)

  • 屏幕使用(如果你不需要对屏幕上,也可以黯淡下去然后让它;不显示一个明亮的白色背景不断)

基本上,任何使用都将消耗电池和电池是一种能量,无论废物设备的能源浪费电池,所以你应该尽量减少它。

Basically, any use at all will drain the battery and the battery is energy, whatever wastes the devices energy wastes the battery so you should minimize it.

这篇关于Android应用程序和能源效率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆