获取电池在Android温度 [英] Get temperature of battery on android

查看:124
本文介绍了获取电池在Android温度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何得到电池的温度机器人?

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

推荐答案

<一个href="http://developer.android.com/reference/android/os/BatteryManager.html">http://developer.android.com/reference/android/os/BatteryManager.html

公共静态最后弦乐EXTRA_TEMPERATURE
额外的ACTION_BATTERY_CHANGED:整数包含当前电池温度。

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

这篇关于获取电池在Android温度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆