Several users of my app have reported their battery draining at around 1% a minute with my app running in the background. I have been unable to replicate this issue even when using the same account credentials on the same device model that the user had the error on. Reinstalling the app apparently does not solve the problem, and there does not seem to be any specific Android version or device associated with the issue. All the reports I've had are Samsung devices running 4.x, but this is also fairly representative of my user base overall. My background service listens for GCM messages and contact list changes as well as firing off an http request roughly every hour using a ScheduledExecutorService.

我的应用程序的几个用户报告他们的电池耗电量大约每分钟1%,我的应用程序在后台运行。即使在用户遇到错误的同一设备模型上使用相同的帐户凭据,我也无法复制此问题。重新安装应用程序显然无法解决问题,似乎没有任何特定的Android版本或设备与此问题相关联。我所有的报告都是运行4.x的三星设备,但这也完全代表了我的用户群。我的后台服务侦听GCM消息和联系人列表更改,并使用ScheduledExecutorService大约每小时触发一次http请求。

I should also note that I do not use any wake locks in the app.

我还应该注意,我在应用程序中不使用任何唤醒锁。

I am wondering if anyone has any ideas as to what sorts of bugs might cause an issue like this, or even what tools or methods might be effective in narrowing down my problem scope.

我想知道是否有人有任何想法可能导致这样的问题,或甚至什么工具或方法可能有效缩小我的问题范围。

2 个解决方案

#1


0

About what percentage of users are reporting this problem? If you tried it on a Samsung device running 4.x and you didn't get an issue something besides your code must be the problem.

大约有多少用户报告此问题?如果你在运行4.x的三星设备上试过它而你没有遇到问题,除了你的代码必须是问题。

更多相关文章

  1. 如何在android 5.0(L)中运行应用程序活动名称?
  2. Android应用程序启动过程上
  3. 点击或长按的Android Listview用户交互设计上下文菜单
  4. Java Android套接字连接。错误的IP地址导致应用程序停止响应
  5. Android 为你的应用程序添加快捷方式【优先级高的快捷方式】
  6. 添加脚本到Android应用程序
  7. 如何使用java RESTful Web服务将通知推送到Android应用程序
  8. android 获取正在运行的应用程序列表
  9. 如何开始为Android开发应用程序? [重复]

随机推荐

  1. NumPy进阶修炼|基础操作与运算
  2. 面试必知必会|堆和优先队列
  3. 童年的游戏,Python一行代码就能玩
  4. 儿童节|Python绘制童年的动漫人物
  5. 51CTO学员---PMP之经验分享
  6. 福布斯系列之数据清洗(1) | Python数据分析
  7. 福布斯系列之数据完整性检查 | Python数
  8. 我埋头吭哧吭哧写文这一年半
  9. 如何找到属于自己高效学习方法?
  10. 小鹿周末总结