intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE, 0);
I have this code, returning: 285, 292, 300 etc
What is this magic number? How can it be convert to Celsius?
voltage
- int, current battery voltage in millivolts
temperature
- int, current battery temperature in tenths of a degree Centigrade
You have to divide that by 10, meaning 285 would be 28.5 °C, 292 -> 29.2 °C and 300 -> 30.0 °C