52ky 发表于 2022-5-11 12:32:47

如何降低Android应用程序的耗电量.docx



我们如何降低Android应用程序的功耗?今天,我回顾了 Jeffrey Sharkey 在 Google Ilo 大会上的演讲(Coding for Life - Battery Life, That ls),也谈到了如何有效控制功耗。数量问题。首先我们来看看安卓手机的电量主要消耗在哪里:
显然,大部分电力消耗在网络连接、GPS、传感器上。简单来说,主要是在以下几种情况下比较耗电: 1、传输大量数据。 2、不断切换网络。 3. 解析大量文本数据。那么我们如何改进我们的程序呢?
1、在需要网络连接的程序中,首先检查网络连接是否正常。如果没有网络连接,则不需要执行相应的程序。以下是检查网络连接的方法:.........

(How can we reduce the power consumption of Android applications? Today, I reviewed Jeffrey Sharkey's speech at Google ILO (coding for life - battery life, that LS), and also talked about how to effectively control power consumption. Quantity problem. First, let's take a look at the main power consumption of Android Phones:
Obviously, most of the power is consumed in network connection, GPS and sensors. In short, the power consumption is mainly compared in the following cases: 1. Transmitting a large amount of data. 2. Keep switching networks. 3. Analyze a large amount of text data. So how can we improve our procedures?
1. In the program requiring network connection, first check whether the network connection is normal. If there is no network connection, the corresponding program does not need to be executed. Here's how to check your network connection:)




页: [1]
查看完整版本: 如何降低Android应用程序的耗电量.docx