English 中文(简体)
氯乙烯电池
原标题:Android battery save

I have an app which has a service and a main activity. The service runs a count down timer and send an even to the activity which receives the event to paint/refresh the count down timer in the screen. Very simple. Now I am investigating battery usage, which is very very high

我将把长官从200米减少到800米,可操作的电线从500至800。 这必须拯救第一嫌疑犯。

但有几个问题:

  1. 我的主要问题是: 当屏蔽时(我有部分的警钟),roid是否继续更新屏幕? 如果是这样的话,我会试图在屏蔽时不提供复习信息(我能否发现屏幕是锁定的)。 你们是否认为这可以帮助?

  2. 你们是否知道在为挽救电池而进行方案规划或设计方面的最佳做法? 我一直在寻找一个网络,但没有发现任何有趣之处。

  3. 是否有数据库打开废物电池?

感谢

问题回答
  1. (根据您的法典排列) 你们的服务会继续经营和发送耗用CPU周期和耗尽权力的最新活动。 无论你试图更新哪些活动,都已经在屏幕锁后暂停。 播放标准节目,供在屏幕上播放,仅供您服务并停止工作。 或者,如果收到有关Pause(Pause)回击的最新活动,则停止你的工作,并在Resume(a)上重新启用(如果没有任何重点的话,则无需再更新活动)。

  2. 见1和 gr和roid。 基本思想:没有用处。

  3. 它没有。 除非有人问。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签