Get temperature of battery on android

前端 未结 5 1919
再見小時候
再見小時候 2020-11-28 09:12

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

5条回答
  •  鱼传尺愫
    2020-11-28 09:26

    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.

提交回复
热议问题