我无法理解为什么某些手机电池温度可能负值!
冬天来了?
我发现温度值可能 -200,-400或-150 而且这些温度值太低了!
这是我的代码:
Intent intent = mContext.registerReceiver(null, new IntentFilter(
"android.intent.action.BATTERY_CHANGED"));
if (intent != null) {
level = intent.getIntExtra("temperature", -1);
}
我在https://developer.android.com/reference/android/os/BatteryManager.html找不到答案。
请帮帮我。