Get temperature of battery on android

Christian picture Christian · Oct 22, 2010 · Viewed 21.5k times · Source

How do I get the temperature of the battery in android?

Answer

Select0r picture Select0r · Oct 22, 2010

http://developer.android.com/reference/android/os/BatteryManager.html

public static final String EXTRA_TEMPERATURE
Extra for ACTION_BATTERY_CHANGED: integer containing the current battery temperature.