17

I retrieved battery temperature and voltage information using the intent Intent.ACTION_BATTERY_CHANGED and the values I got are pretty weird. I could not get any clue: temperature=270 and voltage=3782!

What are these values? Do they have any units like celsius, fahrenheit or milli or micro volt?

jimmym715
  • 1,514
  • 1
  • 16
  • 25
Ashok Jeev
  • 647
  • 3
  • 10
  • 14

1 Answers1

31
  • voltage- int, current battery voltage in millivolts

  • temperature - int, current battery temperature in tenths of a degree Centigrade

From here.

mikrostew
  • 65
  • 7
Vladimir Ivanov
  • 41,277
  • 17
  • 74
  • 99
  • what is tenths of a degree centigrade?? how to convert it to celcius? – Ashok Jeev Feb 03 '11 at 08:49
  • @AshokJeev, you divide it by 10 because there are 10 tenths in an unit: `temperature_C = (float) ( intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE, 0) / 10);` – msysmilu May 07 '15 at 12:16
  • Celcius is the same as centigrade. Mr. Celcius, who invented that temperature scale wanted it named centigrage, but it is also called Celcius since his death. – quemeful Oct 12 '16 at 15:06