Android 安卓手机电池电量监控代码.rar

上传者: 39840588 | 上传时间: 2022-04-06 16:20:12 | 文件大小: 96KB | 文件类型: RAR
Android手机电池电量监控模块示例源代码,生成安卓电池记录文件:/sdcard/BatteryDog/battery.csv ,该文件包含时间、电量信息、温度和电压以及一些简单的图形。四个源码文件:
  BatteryDog_Service继承了服务Service(后台运行和跨进程访问),创建了一个线程负责输出信息到文件,注册了广播接收器ACTION_BATTERY_CHANGED
  BatteryDog继承了Activity 布局battery_dog 文件,主要负责启动/关闭服务Service 和分析数据然后相关控件显示出来
  BatteryGraph继承了Activity 动态布局,显示相关画面
  Log 负责输出显示信息

文件下载

资源详情

[{"title":"( 51 个子文件 96KB ) Android 安卓手机电池电量监控代码.rar","children":[{"title":"srcfans.com","children":[{"title":"andbatdog电池监控","children":[{"title":"tags","children":[{"title":"0_1_0","children":[{"title":"AndroidBatteryDog","children":[{"title":"res","children":[{"title":"drawable","children":[{"title":"battery_dog_icon.png <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"battery_dog.xml <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":".settings","children":null,"spread":false},{"title":"src","children":[{"title":"de","children":[{"title":"hechler","children":null,"spread":false}],"spread":true},{"title":"net","children":[{"title":"sf","children":[{"title":"andbatdog","children":[{"title":"batterydog","children":[{"title":"BatteryDog.java <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"BatteryGraph.java <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"BatteryDog_Service.java <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false},{"title":"Log.java <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 940B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"v0.1.0","children":[{"title":"AndroidBatteryDog","children":[{"title":"res","children":[{"title":"drawable","children":[{"title":"battery_dog_icon.png <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"battery_dog.xml <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":".settings","children":null,"spread":false},{"title":"src","children":[{"title":"de","children":[{"title":"hechler","children":null,"spread":false}],"spread":true},{"title":"net","children":[{"title":"sf","children":[{"title":"andbatdog","children":[{"title":"batterydog","children":[{"title":"BatteryDog.java <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"BatteryGraph.java <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"BatteryDog_Service.java <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false},{"title":"Log.java <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 940B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"trunk","children":[{"title":"AndroidBatteryDog","children":[{"title":"AndroidBatteryDog","children":[{"title":"res","children":[{"title":"drawable","children":[{"title":"battery_dog_icon.png <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"battery_dog.xml <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":".settings","children":null,"spread":false},{"title":"src","children":[{"title":"de","children":[{"title":"hechler","children":null,"spread":false}],"spread":true},{"title":"net","children":[{"title":"sf","children":[{"title":"andbatdog","children":[{"title":"batterydog","children":[{"title":"BatteryDog.java <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"BatteryGraph.java <span style='color:#111;'> 15.75KB </span>","children":null,"spread":false},{"title":"BatteryDog_Service.java <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"Log.java <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 940B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".svn","children":[{"title":"pristine","children":[{"title":"98","children":[{"title":"98a13557122e962c423ed181a04abaf5e615d997.svn-base <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"be","children":[{"title":"be8283b6be42711d12cb6d2feca9150178d12639.svn-base <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"a8","children":[{"title":"a8e1ff0f16051da24df26a73aff0369fe2401e0b.svn-base <span style='color:#111;'> 960B </span>","children":null,"spread":false}],"spread":true},{"title":"a6","children":[{"title":"a6f27b57fff3b1f7b0b50edad74ba894d49c3bff.svn-base <span style='color:#111;'> 280B </span>","children":null,"spread":false}],"spread":true},{"title":"2a","children":[{"title":"2aeaf042e00ebd0deb02631af9cf48279715174c.svn-base <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"76","children":[{"title":"76046ed18052cd0a57911bd0acb56e1c8072c9aa.svn-base <span style='color:#111;'> 15.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"b2","children":[{"title":"b2cdcef08835323c5d2e4f5c77d17db0ef3d4222.svn-base <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":true},{"title":"a1","children":[{"title":"a10711fe7c3141f131286dd6aa5c80d2bc31b226.svn-base <span style='color:#111;'> 960B </span>","children":null,"spread":false}],"spread":true},{"title":"cb","children":[{"title":"cbef9e187a29a6267c5a050d68b78efa74e67a7d.svn-base <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false}],"spread":false},{"title":"fe","children":[{"title":"fedfadc44a04792c4ca97d61d5708b1fddfeaee0.svn-base <span style='color:#111;'> 940B </span>","children":null,"spread":false}],"spread":false},{"title":"c6","children":[{"title":"c6ae6bd6c0f5516851755f1f30f7fb423fd5e2d2.svn-base <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":false},{"title":"8d","children":[{"title":"8dbe68e3842bded48762763287bc4bc22a65f656.svn-base <span style='color:#111;'> 853B </span>","children":null,"spread":false}],"spread":false},{"title":"af","children":[{"title":"af17836108cfb74275bdcbb9c3e10c24f24c7cf4.svn-base <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":false},{"title":"93","children":[{"title":"9390fcb60ccf3517e11e44976fc75f2f7f31f12f.svn-base <span style='color:#111;'> 940B </span>","children":null,"spread":false}],"spread":false},{"title":"b4","children":[{"title":"b4482bdba6412272aae7eace6beddcc86f9971db.svn-base <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"wc.db <span style='color:#111;'> 87.00KB </span>","children":null,"spread":false},{"title":"tmp","children":null,"spread":false},{"title":"entries <span style='color:#111;'> 3B </span>","children":null,"spread":false},{"title":"format <span style='color:#111;'> 3B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明