[Android.Runtime.Register("BATTERY_HEALTH_GOOD")] [System.Obsolete("This constant will be removed in the future version. Use Android.OS.BatteryHealth enum directly instead of this field.", true)] public const Android.OS.BatteryHealth BatteryHealthGood = 2; Field Value Value = 2 BatteryHealt...
Android中电池信息(Battery information)的取得就是写一个BroadcastReceiver接受广播信息即可。 在BroadcastReceiver的onReceive()事件,接收到的Intent.ACTION_BATTERY_CHANGED,包括下面的信息。 “status”(int类型)…状态,定义值是BatteryManager.BATTERY_STATUS_XXX。 “health”(int类型)…健康,定义值是BatteryManager.BATTER...
23 if (mAlwaysPluggedDevice) { 24 props.chargerAcOnline = true; 25 props.batteryPresent = true; 26 props.batteryStatus = BATTERY_STATUS_CHARGING; 27 props.batteryHealth = BATTERY_HEALTH_GOOD; 28 } 29 30 const int SIZE = 128; 31 char buf[SIZE]; 32 String8 btech; 33 //读取/sys/cla...
BatteryManager.BATTERY_HEALTH_UNKNOWN:未知 BatteryManager.BATTERY_HEALTH_GOOD:良好 BatteryManager.BATTERY_HEALTH_OVERHEAT:过热 BatteryManager.BATTERY_HEALTH_DEAD:没电 BatteryManager.BATTERY_HEALTH_OVER_VOLTAGE:过电压 BatteryManager.BATTERY_HEALTH_UNSPECIFIED_FAILURE:未知故障 BatteryManager.BATTERY_HEALTH_COLD:冷却//...
//充电类型 BatteryManager.BATTERY_PLUGGED_AC 表示是充电器,不是这个值,表示是 USB Log.d("Battery", "" + intent.getIntExtra("plugged", 0)); //电池健康情况,返回也是一个数字 //BatteryManager.BATTERY_HEALTH_GOOD 良好 //BatteryManager.BATTERY_HEALTH_OVERHEAT 过热 ...
health ) { case BatteryManager.BATTERY_HEALTH_DEAD : strBuffer.append("BATTERY_HEALTH_DEAD"); break; case BatteryManager.BATTERY_HEALTH_GOOD : strBuffer.append("BATTERY_HEALTH_GOOD"); break; case BatteryManager.BATTERY_HEALTH_OVER_VOLTAGE
Health: 电池健康状态的信息,这个信息一定程度上反映了这块电池使用了多长时间。这一栏记录电池状态在何时发生改变,上面的图中电池状态一直处于good状态。 Plug: 充电方式,usb或者插座,以及显示连接的时间。这一栏显示了不同的充电方式对电量使用的影响。 优点:结果直观,有详细的耗电数据 ...
//BatteryManager.BATTERY_HEALTH_GOOD 良好 //BatteryManager.BATTERY_HEALTH_OVERHEAT 过热 //BatteryManager.BATTERY_HEALTH_DEAD 没电 //BatteryManager.BATTERY_HEALTH_OVER_VOLTAGE 过电压 //BatteryManager.BATTERY_HEALTH_UNSPECIFIED_FAILURE 未知错误 Log.d("Battery", "" + intent.getIntExtra("health", ...
BatteryManager.BATTERY_HEALTH_UNKNOWN:editor.putString("batteryHealth","BATTERY_HEALTH_UNKNOWN");break;caseBatteryManager.BATTERY_HEALTH_GOOD:editor.putString("batteryHealth","BatteryManager.BATTERY_HEALTH_GOOD");break;caseBatteryManager.BATTERY_HEALTH_OVERHEAT:editor.putString("batteryHealth","BatteryManager....
今年 ILSVRC 2016(全称是ImageNet Large Scale Visual Recognition Challenge)分为五大部分,包括:目标检...