adb 常用命令:
安装apk install :adb install D:\apk\test.apk
复制文件到手机内存 push: adb push D:\apk\test.apk /data/local/tmp
手机内存文件复制到电脑 pull :adb pull /data/local/tmp/test.apk c://
查看cpu 内存 adb shell 后使用top 命令
原文查看地址:http://developer.android.com/tools/help/adb.html
网站:http://stackoverflow.com/可以搜到adb的解释
http://stackoverflow.com/questions/17381324/how-to-tell-if-android-device-detected-by-adb
电量测试原文地址:https://developer.android.com/training/monitoring-device-state/index.html
影响电量的因素:取消广播、用wifi、减少服务更新服务
https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html
小米手机为什么省电?
省电心法:CPU消耗(轮询线程),唤醒频率(wakelock),联网时长(失败重试),屏幕、GPS、相机使用时间,SD卡读写
在onPause()方法中可以:停止耗费持续耗费cpu的操作,如动画;释放系统资源,如摄像头